提交 b3a69117 authored 作者: Brandon T. Willard's avatar Brandon T. Willard 提交者: Brandon T. Willard

Add a length-based TensorType.in_same_class test

上级 4c02133a
...@@ -31,6 +31,10 @@ def test_in_same_class(): ...@@ -31,6 +31,10 @@ def test_in_same_class():
assert test_type.in_same_class(test_type) assert test_type.in_same_class(test_type)
assert not test_type.in_same_class(test_type2) assert not test_type.in_same_class(test_type2)
test_type = TensorType(config.floatX, shape=())
test_type2 = TensorType(config.floatX, shape=(None,))
assert not test_type.in_same_class(test_type2)
def test_is_super(): def test_is_super():
test_type = TensorType(config.floatX, shape=(None, None)) test_type = TensorType(config.floatX, shape=(None, None))
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论