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

Class VarWrapper

python/paddle/hapi/static_flops.py:24–41  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

22
23
24class VarWrapper:
25 def __init__(self, var, graph):
26 assert isinstance(var, Variable)
27 assert isinstance(graph, GraphWrapper)
28 self._var = var
29 self._graph = graph
30
31 def name(self):
32 """
33 Get the name of the variable.
34 """
35 return self._var.name
36
37 def shape(self):
38 """
39 Get the shape of the variable.
40 """
41 return self._var.shape
42
43
44class OpWrapper:

Callers 1

varMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected