Private method used to set a function attribute in the node_def.
(self, attr_name, func_name)
| 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.""" |
no test coverage detected