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

Method _set_func_list_attr

tensorflow/python/framework/ops.py:2337–2342  ·  view source on GitHub ↗

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

(self, attr_name, func_names)

Source from the content-addressed store, hash-verified

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."""
2339 funcs = [attr_value_pb2.NameAttrList(name=func_name)
2340 for func_name in func_names]
2341 funcs_list = attr_value_pb2.AttrValue.ListValue(func=funcs)
2342 self._set_attr(attr_name, attr_value_pb2.AttrValue(list=funcs_list))
2343
2344 def _set_type_list_attr(self, attr_name, types):
2345 """Private method used to set a list(type) attribute in the node_def."""

Callers 1

_CaseGradFunction · 0.80

Calls 1

_set_attrMethod · 0.95

Tested by

no test coverage detected