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

Method _set_shape_list_attr

tensorflow/python/framework/ops.py:2353–2357  ·  view source on GitHub ↗

Private method used to set a list(shape) attribute in the node_def.

(self, attr_name, shapes)

Source from the content-addressed store, hash-verified

2351 self._set_attr(attr_name, attr_value_pb2.AttrValue(list=types_list))
2352
2353 def _set_shape_list_attr(self, attr_name, shapes):
2354 """Private method used to set a list(shape) attribute in the node_def."""
2355 shapes = [s.as_proto() for s in shapes]
2356 shapes_list = attr_value_pb2.AttrValue.ListValue(shape=shapes)
2357 self._set_attr(attr_name, attr_value_pb2.AttrValue(list=shapes_list))
2358
2359 def _clear_attr(self, attr_name):
2360 """Private method used to clear an attribute in the node_def."""

Callers 4

_IfGradFunction · 0.80
_CaseGradFunction · 0.80
_WhileGradFunction · 0.80
testMethod · 0.80

Calls 2

_set_attrMethod · 0.95
as_protoMethod · 0.80

Tested by 1

testMethod · 0.64