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

Method _set_func_attr

tensorflow/python/framework/ops.py:2332–2335  ·  view source on GitHub ↗

Private method used to set a function attribute in the node_def.

(self, attr_name, func_name)

Source from the content-addressed store, hash-verified

2330 c_api.TF_DeleteBuffer(buf)
2331
2332 def _set_func_attr(self, attr_name, func_name):
2333 """Private method used to set a function attribute in the node_def."""
2334 func = attr_value_pb2.NameAttrList(name=func_name)
2335 self._set_attr(attr_name, attr_value_pb2.AttrValue(func=func))
2336
2337 def _set_func_list_attr(self, attr_name, func_names):
2338 """Private method used to set a list(function) attribute in the node_def."""

Callers 3

_IfGradFunction · 0.80
_WhileGradFunction · 0.80

Calls 1

_set_attrMethod · 0.95

Tested by

no test coverage detected