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

Method var

python/paddle/hapi/static_flops.py:115–122  ·  view source on GitHub ↗

Get the variable by variable name.

(self, name)

Source from the content-addressed store, hash-verified

113 return ops
114
115 def var(self, name):
116 """
117 Get the variable by variable name.
118 """
119 for block in self.program.blocks:
120 if block.has_var(name):
121 return VarWrapper(block.var(name), self)
122 return None
123
124
125def count_convNd(op):

Callers 2

inputsMethod · 0.45
outputsMethod · 0.45

Calls 2

VarWrapperClass · 0.85
has_varMethod · 0.45

Tested by

no test coverage detected