提交 1aba43ac authored 作者: Frederic's avatar Frederic

remove deprecation warning in tests.

上级 d27c3536
...@@ -283,7 +283,7 @@ class test_diag(unittest.TestCase): ...@@ -283,7 +283,7 @@ class test_diag(unittest.TestCase):
test_diag test makes sure that linalg.diag instantiates test_diag test makes sure that linalg.diag instantiates
the right op based on the dimension of the input. the right op based on the dimension of the input.
""" """
def __init__(self, name, mode=None, shared=tensor.shared, def __init__(self, name, mode=None, shared=tensor._shared,
floatX=None, type=tensor.TensorType): floatX=None, type=tensor.TensorType):
self.mode = mode self.mode = mode
self.shared = shared self.shared = shared
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论