提交 b1cd90b3 authored 作者: jhelie's avatar jhelie

fix call to copy()]

上级 c5a1cae2
......@@ -56,7 +56,7 @@ def safe_new(x, tag='', dtype=None):
if dtype and x.dtype != dtype:
casted_x = x.astype(dtype)
nwx = x.__class__(casted_x.type, x.data, x.name)
nwx.tag = copy(x.tag)
nwx.tag = copy.copy(x.tag)
return nwx
else:
return x.clone()
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论