private void ErrorBackward(TensorOld error) { BackwardOutput.Clear(); Parallel.For(0, samples, sampleIndex => { Parallel.For(0, FilterCount, filterIndex => { ErrorBackward(error, sampleIndex, filterIndex); }); }); }
public override TensorOld Backward(TensorOld error) { BackwardOutput.Clear(); Parallel.For(0, ForwardOutput.shape[0], sampleIndex => { Parallel.For(0, ForwardOutput.shape[1], channel => { ErrorBP(error, sampleIndex, channel); }); }); return(BackwardOutput); }