提交 81884d8f authored 作者: David Warde-Farley's avatar David Warde-Farley

Regression test for Ian's T.mean() fix.

上级 4b8320c7
...@@ -2918,6 +2918,14 @@ class T_divimpl(unittest.TestCase): ...@@ -2918,6 +2918,14 @@ class T_divimpl(unittest.TestCase):
assert numpy.allclose(function([i, ii, d, f, c], true_div(ii,i))(5, 3, 7.0, 11.0, numpy.complex(5,3)), assert numpy.allclose(function([i, ii, d, f, c], true_div(ii,i))(5, 3, 7.0, 11.0, numpy.complex(5,3)),
(3./5.)) (3./5.))
class T_mean(unittest.TestCase):
def test_regression_mean_of_ndarray_failure(self):
try:
T.mean(numpy.zeros(1))
except AttributeError:
self.fail()
# class T_abs(unittest.TestCase): # class T_abs(unittest.TestCase):
# def test_impl(self): # def test_impl(self):
# t = as_tensor_variable(1.0) # t = as_tensor_variable(1.0)
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论