Private method used to clear an attribute in the node_def.
(self, attr_name)
| 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.""" |
| 2361 | # pylint: disable=protected-access |
| 2362 | c_api.ClearAttr(self._graph._c_graph, self._c_op, attr_name) |
| 2363 | # pylint: enable=protected-access |
| 2364 | |
| 2365 | def get_attr(self, name): |
| 2366 | """Returns the value of the attr of this op with the given `name`. |