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

Class MyModel

examples/onnx/squeezenet.py:58–68  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

56
57
58class MyModel(sonnx.SONNXModel):
59
60 def __init__(self, onnx_model):
61 super(MyModel, self).__init__(onnx_model)
62
63 def forward(self, *x):
64 y = super(MyModel, self).forward(*x)
65 return y[0]
66
67 def train_one_batch(self, x, y):
68 pass
69
70
71if __name__ == '__main__':

Callers 1

squeezenet.pyFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected