Set the node variable shape. Args: shape(list): shape to be set.
(self, shape)
| 5338 | self.node = node |
| 5339 | |
| 5340 | def set_shape(self, shape): |
| 5341 | """ |
| 5342 | Set the node variable shape. |
| 5343 | |
| 5344 | Args: |
| 5345 | shape(list): shape to be set. |
| 5346 | """ |
| 5347 | assert self.node.var() is not None, ( |
| 5348 | "The node variable description can not be None." |
| 5349 | ) |
| 5350 | self.node.var().set_shape(shape) |
| 5351 | |
| 5352 | def persistable(self): |
| 5353 | """ |
no test coverage detected