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

Method type

python/paddle/base/framework.py:5364–5374  ·  view source on GitHub ↗

Return the variable type. Returns: core.VarDesc.VarType: the variable type.

(self)

Source from the content-addressed store, hash-verified

5362 return self.node.var().persistable()
5363
5364 def type(self):
5365 """
5366 Return the variable type.
5367
5368 Returns:
5369 core.VarDesc.VarType: the variable type.
5370 """
5371 assert self.node.var() is not None, (
5372 "The node variable description can not be None."
5373 )
5374 return self.node.var().type()
5375
5376 def dtype(self):
5377 """

Callers

nothing calls this directly

Calls 2

varMethod · 0.45
typeMethod · 0.45

Tested by

no test coverage detected