Private method used to set a list(function) attribute in the node_def.
(self, attr_name, func_names)
| 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.""" |