Пример #1
0
 def forward(self, inputs):
     self.outputs = relu(inputs)
     return self.outputs
Пример #2
0
 def backward(self, inputs, output_errors):
     return output_errors * relu(inputs, True)
Пример #3
0
    def backward(self, inputs, output_errors):

        # TODO 2
        return output_errors * relu(self.outputs, True)