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

Class MyModel

examples/onnx/superresolution.py:51–61  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

49
50
51class MyModel(sonnx.SONNXModel):
52
53 def __init__(self, onnx_model):
54 super(MyModel, self).__init__(onnx_model)
55
56 def forward(self, *x):
57 y = super(MyModel, self).forward(*x)
58 return y[0]
59
60 def train_one_batch(self, x, y):
61 pass
62
63
64if __name__ == "__main__":

Callers 1

superresolution.pyFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected