We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d80f35a commit 7e0aea8Copy full SHA for 7e0aea8
utensor_cgen/ir/base.py
@@ -4,10 +4,10 @@
4
from functools import reduce
5
6
import attr
7
-import numpy as np
8
import six
9
from attr.validators import instance_of
10
+import numpy as np
11
import tensorflow as tf
12
from tensorflow.core.framework.attr_value_pb2 import AttrValue as _AttrValue
13
from tensorflow.core.framework.attr_value_pb2 import \
@@ -69,6 +69,7 @@ class TensorInfo(IRBase, _NoShallowCopyMixin):
69
dtype = attr.ib(validator=instance_of(np.dtype))
70
71
shape = attr.ib(validator=instance_of((list, type(None))))
72
+ attributes = attr.ib(factory=dict, validator=instance_of(dict))
73
74
@shape.validator
75
def check(self, attrib, shape_values):
0 commit comments