提交 a9272dfa authored 作者: Frederic Bastien's avatar Frederic Bastien

Fix comparaison.

上级 53987a5b
...@@ -28,7 +28,7 @@ def _asarray(a, dtype, order=None): ...@@ -28,7 +28,7 @@ def _asarray(a, dtype, order=None):
used internally. It is imported so as to be available directly through used internally. It is imported so as to be available directly through
theano._asarray theano._asarray
""" """
if dtype == 'floatX': if str(dtype) == 'floatX':
dtype = theano.config.floatX dtype = theano.config.floatX
dtype = numpy.dtype(dtype) # Convert into dtype object. dtype = numpy.dtype(dtype) # Convert into dtype object.
rval = numpy.asarray(a, dtype=dtype, order=order) rval = numpy.asarray(a, dtype=dtype, order=order)
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论