(self, inputs)
| 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 |
no outgoing calls
no test coverage detected