提交 1de6fa0b 编写于 作者: Y yeliang2258

updtae tode

上级 5768d032
...@@ -62,7 +62,7 @@ def _rename_or_remove_weight(weights, ...@@ -62,7 +62,7 @@ def _rename_or_remove_weight(weights,
if origin_name not in weights: if origin_name not in weights:
raise KeyError('{} not a key in {}'.format(origin_name, weights.keys())) raise KeyError('{} not a key in {}'.format(origin_name, weights.keys()))
if is_remove: if is_remove:
# TODO There might be a problem here. # TODO There may be problems when the same data is used as an argument to multiple OPs.
# remove weight # remove weight
data = weights.pop(origin_name) data = weights.pop(origin_name)
else: else:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册