提交 0b3ffa5e authored 作者: amrithasuresh's avatar amrithasuresh

Updated numpy as np

上级 2925e356
...@@ -56,7 +56,7 @@ def shared(value, name=None, strict=False, allow_downcast=None): ...@@ -56,7 +56,7 @@ def shared(value, name=None, strict=False, allow_downcast=None):
dtype = np.asarray(value).dtype dtype = np.asarray(value).dtype
dtype = str(dtype) dtype = str(dtype)
value = getattr(numpy, dtype)(value) value = getattr(np, dtype)(value)
scalar_type = Scalar(dtype=dtype) scalar_type = Scalar(dtype=dtype)
rval = ScalarSharedVariable( rval = ScalarSharedVariable(
type=scalar_type, type=scalar_type,
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论