提交 b9f3c21e authored 作者: Olivier Delalleau's avatar Olivier Delalleau

Fixed a couple tests -- forgot to push this fix earlier

上级 daede851
...@@ -4324,7 +4324,7 @@ def test_autocast(): ...@@ -4324,7 +4324,7 @@ def test_autocast():
# Call test functions for all possible values of `config.cast_policy`. # Call test functions for all possible values of `config.cast_policy`.
for autocast_cfg in ( for autocast_cfg in (
'custom', 'custom',
'numpy', #'numpy', # Commented out until it is implemented properly.
'numpy+floatX', 'numpy+floatX',
): ):
config.cast_policy = autocast_cfg config.cast_policy = autocast_cfg
...@@ -4500,7 +4500,7 @@ class test_arithmetic_cast(unittest.TestCase): ...@@ -4500,7 +4500,7 @@ class test_arithmetic_cast(unittest.TestCase):
theano_i_scalar = lambda dtype: theano.scalar.Scalar(str(dtype))() theano_i_scalar = lambda dtype: theano.scalar.Scalar(str(dtype))()
numpy_i_scalar = numpy_scalar numpy_i_scalar = numpy_scalar
try: try:
for cfg in ('numpy', 'numpy+floatX'): for cfg in ('numpy+floatX', ): # Used to test 'numpy' as well.
config.cast_policy = cfg config.cast_policy = cfg
for op in (operator.add, operator.sub, operator.mul, for op in (operator.add, operator.sub, operator.mul,
operator.div, operator.floordiv): operator.div, operator.floordiv):
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论