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

Method numpy_forward

test/python/test_model.py:369–375  ·  view source on GitHub ↗
(self, inputs)

Source from the content-addressed store, hash-verified

367 self.B1 = tensor.to_numpy(self.b1)
368
369 def numpy_forward(self, inputs):
370 self.x1 = np.matmul(inputs, self.W0)
371 self.x2 = np.add(self.x1, self.B0)
372 self.x3 = np.maximum(self.x2, 0)
373 self.x4 = np.matmul(self.x3, self.W1)
374 self.x5 = np.add(self.x4, self.B1)
375 return self.x5
376
377 def numpy_train_one_batch(self, inputs, y):
378 # forward propagation

Callers 2

numpy_train_one_batchMethod · 0.95
_forward_helperMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected