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

Method __init__

test/python/test_model.py:82–90  ·  view source on GitHub ↗
(self, data_size=10, perceptron_size=100, num_classes=10)

Source from the content-addressed store, hash-verified

80class MLP(model.Model):
81
82 def __init__(self, data_size=10, perceptron_size=100, num_classes=10):
83 super(MLP, self).__init__()
84 self.num_classes = num_classes
85 self.dimension = 2
86
87 self.relu = layer.ReLU()
88 self.linear1 = layer.Linear(perceptron_size)
89 self.linear2 = layer.Linear(num_classes)
90 self.softmax_cross_entropy = layer.SoftMaxCrossEntropy()
91
92 def forward(self, inputs):
93 y = self.linear1(inputs)

Callers 5

__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected