MCPcopy Create free account
hub / github.com/PaddlePaddle/Paddle / persistable

Method persistable

python/paddle/base/framework.py:5352–5362  ·  view source on GitHub ↗

If the variable node is a persistable variable, then return true. Returns: bool: indicate whether the variable is persistable.

(self)

Source from the content-addressed store, hash-verified

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 """

Callers

nothing calls this directly

Calls 2

varMethod · 0.45
persistableMethod · 0.45

Tested by

no test coverage detected