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

Method inputs

python/paddle/hapi/static_flops.py:56–65  ·  view source on GitHub ↗

Get all the variables by the input name.

(self, name)

Source from the content-addressed store, hash-verified

54 return self._op.type
55
56 def inputs(self, name):
57 """
58 Get all the variables by the input name.
59 """
60 if name in self._op.input_names:
61 return [
62 self._graph.var(var_name) for var_name in self._op.input(name)
63 ]
64 else:
65 return []
66
67 def outputs(self, name):
68 """

Callers 5

count_convNdFunction · 0.45
count_linearFunction · 0.45
count_pool2dFunction · 0.45
count_element_opFunction · 0.45
_graph_flopsFunction · 0.45

Calls 2

varMethod · 0.45
inputMethod · 0.45

Tested by

no test coverage detected