If the variable node is a persistable variable, then return true. Returns: bool: indicate whether the variable is persistable.
(self)
| 5350 | self.node.var().set_shape(shape) |
| 5351 | |
| 5352 | def persistable(self): |
| 5353 | """ |
| 5354 | If the variable node is a persistable variable, then return true. |
| 5355 | |
| 5356 | Returns: |
| 5357 | bool: indicate whether the variable is persistable. |
| 5358 | """ |
| 5359 | assert self.node.var() is not None, ( |
| 5360 | "The node variable description can not be None." |
| 5361 | ) |
| 5362 | return self.node.var().persistable() |
| 5363 | |
| 5364 | def type(self): |
| 5365 | """ |
nothing calls this directly
no test coverage detected