MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / get_attr

Method get_attr

tensorflow/python/eager/backprop.py:100–105  ·  view source on GitHub ↗
(self, attr)

Source from the content-addressed store, hash-verified

98 self.skip_input_indices = skip_input_indices
99
100 def get_attr(self, attr):
101 typ = op_attr_type(self.type, attr)
102 for i in range(0, len(self.attrs), 2):
103 if self.attrs[i] == attr:
104 return make_attr(typ, self.attrs[i + 1])
105 raise KeyError(attr)
106
107 def _get_control_flow_context(self):
108 raise NotImplementedError(

Callers 15

remove_redundant_castsFunction · 0.45
_optimizeFunction · 0.45
embedding_optFunction · 0.45
embedding_var_optFunction · 0.45
optimizeFunction · 0.45
_BatchGradFunction · 0.45
_file_path_valueMethod · 0.45
_RoutingFunctionGradientFunction · 0.45

Calls 3

op_attr_typeFunction · 0.85
make_attrFunction · 0.85
rangeFunction · 0.50

Tested by 15

_TestQuantDelayMethod · 0.36
_TestWeightBitsMethod · 0.36
_TestActivationBitsMethod · 0.36
testContainerMethod · 0.36
device_funcMethod · 0.36
testDefaultNameMethod · 0.36