Unverified 提交 d3b3f92f authored 作者: Duc Nguyen's avatar Duc Nguyen 提交者: GitHub

changed np cast to theano cast in bilinear_kernel_1D

上级 ff86e745
......@@ -1766,7 +1766,7 @@ def bilinear_kernel_1D(ratio, normalize=True):
kern = T.concatenate([half_kern, half_kern[-2::-1]])
if normalize:
kern /= np.cast[theano.config.floatX](ratio)
kern /= T.cast(ratio, theano.config.floatX)
return kern
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论