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

Method _clear_attr

tensorflow/python/framework/ops.py:2359–2363  ·  view source on GitHub ↗

Private method used to clear an attribute in the node_def.

(self, attr_name)

Source from the content-addressed store, hash-verified

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."""
2361 # pylint: disable=protected-access
2362 c_api.ClearAttr(self._graph._c_graph, self._c_op, attr_name)
2363 # pylint: enable=protected-access
2364
2365 def get_attr(self, name):
2366 """Returns the value of the attr of this op with the given `name`.

Callers 2

_v1_asset_saved_modelMethod · 0.80

Calls 1

ClearAttrMethod · 0.80

Tested by 1

_v1_asset_saved_modelMethod · 0.64