提交 d5ff6904 authored 作者: Justin Bayer's avatar Justin Bayer

Fixed a call to theano.tensor.cast: cast(...) -> T.cast(...)

上级 bd3cac42
......@@ -901,7 +901,7 @@ def _as_scalar(res):
rval = res
if rval.type.dtype[:3] in ('int', 'uin'):
rval = cast(rval, theano.config.floatX) #may lose precision !?
rval = T.cast(rval, theano.config.floatX) #may lose precision !?
#if isinstance(rval, T.Constant):
#rval = rval.data.flatten()[0]
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论