MCPcopy Create free account
hub / github.com/pytorch/pytorch / NodePyOP

Class NodePyOP

torch/utils/tensorboard/_pytorch_graph.py:110–118  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

108
109
110class NodePyOP(NodePy):
111 def __init__(self, node_cpp):
112 super().__init__(node_cpp, methods_OP)
113 # Replace single quote which causes strange behavior in TensorBoard
114 # TODO: See if we can remove this in the future
115 self.attributes = str(
116 {k: _node_get(node_cpp, k) for k in node_cpp.attributeNames()}
117 ).replace("'", " ")
118 self.kind = node_cpp.kind()
119
120
121class GraphPy:

Callers 1

parseFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…