MCPcopy Create free account
hub / github.com/apache/singa / __init__

Method __init__

test/python/test_onnx.py:2096–2101  ·  view source on GitHub ↗
(self, sg_ir)

Source from the content-addressed store, hash-verified

2094 class MyLayer2(layer.Layer):
2095
2096 def __init__(self, sg_ir):
2097 super(MyLayer2, self).__init__()
2098 self.sg_ir = sg_ir
2099 for node, operator in self.sg_ir.layers:
2100 self.__dict__[node.name] = operator
2101 self.conv2 = layer.Conv2d(1, 2)
2102
2103 def forward(self, inputs):
2104 x = self.sg_ir.run(inputs, last_layers=-1)[0]

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected