Browse Source

[to #45452180] python 3.10.x compatible

Link: https://code.alibaba-inc.com/Ali-MaaS/MaaS-lib/codereview/10394282

    * python 3.10.x compatible
master
zhangzhicheng.zzc yingda.chen 3 years ago
parent
commit
383452b0a4
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      modelscope/utils/tensor_utils.py

+ 1
- 1
modelscope/utils/tensor_utils.py View File

@@ -1,6 +1,6 @@
# Copyright (c) Alibaba, Inc. and its affiliates.
# Part of the implementation is borrowed from huggingface/transformers.
from collections import Mapping
from collections.abc import Mapping


def torch_nested_numpify(tensors):


Loading…
Cancel
Save