(self, inputs, targets)
return self.deltas
Compute the derivative of the cost function

        Arguments:
            inputs (Tensor): Tensor containing input values to be compared to
                targets
            targets (Tensor): Tensor containing target values.

        Returns:
            Tensor of same shape as the inputs containing their respective
            deltas.
Compute the derivative of the cost function
Compute the derivative of the cost function
def get_errors(self, inputs, targets):
        """
        Compute the derivative of the cost function

        Arguments:
            inputs (Tensor): Tensor containing input values to be compared to
                targets
            targets (Tensor): Tensor containing target values.

        Returns:
            Tensor of same shape as the inputs containing their respective
            deltas.
        """
        self.deltas[:] = self.costfunc.bprop(inputs, targets)
        self.be.clean_data(self.deltas, True)
        return self.deltas
def get_errors ( self , inputs , targets ) : self . deltas [ : ] = self . costfunc . bprop ( inputs , targets ) self . be . clean_data ( self . deltas , True ) return self . deltas