def bprop(self): dL_doutput = self.output.backward_matrix dL_doutput.scale(self.context, ct.c_float(1.0 / self.length)) Matrix.sequentially_tile(self.context, dL_doutput, self.dL_dmatrices[:self.length])
def bprop(self): dL_doutput = self.output.backward_matrix Matrix.sequentially_tile(self.context, dL_doutput, self.dL_dmatrices[:self.length])