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

Method ops

python/paddle/hapi/static_flops.py:105–113  ·  view source on GitHub ↗

Return all operator nodes included in the graph as a set.

(self)

Source from the content-addressed store, hash-verified

103 self._attrs = OrderedDict()
104
105 def ops(self):
106 """
107 Return all operator nodes included in the graph as a set.
108 """
109 ops = []
110 for block in self.program.blocks:
111 for op in block.ops:
112 ops.append(OpWrapper(op, self))
113 return ops
114
115 def var(self, name):
116 """

Callers 1

_graph_flopsFunction · 0.45

Calls 2

OpWrapperClass · 0.85
appendMethod · 0.45

Tested by

no test coverage detected