提交 a6e8a353 authored 作者: amrithasuresh's avatar amrithasuresh

Updated numpy as np

上级 b20bb36e
......@@ -2249,7 +2249,7 @@ class Cast(UnaryScalarOp):
raise TypeError(o_type)
super(Cast, self).__init__(specific_out(o_type), name=name)
self.o_type = o_type
self.ctor = getattr(numpy, o_type.dtype)
self.ctor = getattr(np, o_type.dtype)
def __str__(self):
return '%s{%s}' % (self.__class__.__name__, self.o_type.dtype)
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论