Private method used to set a list(shape) attribute in the node_def.
(self, attr_name, shapes)
| 2351 | self._set_attr(attr_name, attr_value_pb2.AttrValue(list=types_list)) |
| 2352 | |
| 2353 | def _set_shape_list_attr(self, attr_name, shapes): |
| 2354 | """Private method used to set a list(shape) attribute in the node_def.""" |
| 2355 | shapes = [s.as_proto() for s in shapes] |
| 2356 | shapes_list = attr_value_pb2.AttrValue.ListValue(shape=shapes) |
| 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.""" |