File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -69,21 +69,21 @@ class TensorInfo(IRBase, _NoShallowCopyMixin):
69
69
dtype = attr .ib (validator = instance_of (np .dtype ))
70
70
71
71
shape = attr .ib (validator = instance_of ((list , type (None ))))
72
- attributes = attr .ib (factory = dict , validator = instance_of (dict ))
73
-
74
72
@shape .validator
75
73
def check (self , attrib , shape_values ):
76
74
if shape_values is not None :
77
75
for v in shape_values :
78
76
assert isinstance (v , (int , type (None ))), \
79
77
"shape should be a list of integers"
80
-
78
+
81
79
_ugraph = attr .ib (repr = False )
82
80
@_ugraph .validator
83
81
def check (self , attrib , value ):
84
82
if not isinstance (value , uTensorGraph ):
85
83
raise ValueError ('Expecting a uTensorGraph, get {}' .format (type (value )))
86
84
85
+ attributes = attr .ib (factory = dict , validator = instance_of (dict ))
86
+
87
87
_NULL_PREFIX = 'utensor_null'
88
88
89
89
def move_into (self , ugraph ):
You can’t perform that action at this time.
0 commit comments