提交 21ad0782 authored 作者: Frederic Bastien's avatar Frederic Bastien

Do code review

上级 c14f867f
from __future__ import absolute_import, print_function, division from __future__ import absolute_import, print_function, division
import os import os
import nose
import numpy as np import numpy as np
import theano import theano
...@@ -62,12 +63,8 @@ def test_filter_float(): ...@@ -62,12 +63,8 @@ def test_filter_float():
def test_gpuarray_shared_scalar(): def test_gpuarray_shared_scalar():
# By default, we don't put scalar as shared variable on the GPU # By default, we don't put scalar as shared variable on the GPU
try: nose.tools.assert_raises(
gpuarray_shared_constructor(np.asarray(1, dtype='float32')) TypeError, gpuarray_shared_constructor, np.asarray(1, dtype='float32'))
except TypeError:
pass
else:
assert False, "Expected an error"
# But we can force that # But we can force that
gpuarray_shared_constructor(np.asarray(1, dtype='float32'), gpuarray_shared_constructor(np.asarray(1, dtype='float32'),
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论