提交 dc560fcf authored 作者: Pierre Luc Carrier's avatar Pierre Luc Carrier

Adjust ndim for TypedList

上级 1d556413
......@@ -42,7 +42,7 @@ class _typed_list_py_operators:
ttype = property(lambda self: self.type.ttype)
dtype = property(lambda self: self.type.ttype.dtype)
ndim = property(lambda self: self.type.ttype.ndim)
ndim = property(lambda self: self.type.ttype.ndim + 1)
class TypedListVariable(_typed_list_py_operators, Variable):
......
......@@ -129,4 +129,4 @@ class TypedListType(gof.Type):
return (2,)
dtype = property(lambda self: self.ttype)
ndim = property(lambda self: self.ttype.ndim)
ndim = property(lambda self: self.ttype.ndim + 1)
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论