public void SoftmaxLayer_BackwardGradient() { var layer = new SoftmaxLayer(); var checker = new GradientChecker(1e-2f, 1e-3f); checker.CheckExhaustive(layer, bottom, top); }
public void SoftmaxLayer_BackwardGradient() { var layer = new SoftmaxLayer(); var checker = new GradientChecker(1e-2f, 1e-3f); checker.CheckExhaustive(layer, bottom, top); }
public void AveragePoolingLayer_BackwardGradient( Size kernel, Size stride, Size padding ) { var filler = new ConstantFiller(2.0d); filler.Fill(bottom); var checker = new GradientChecker(1e-2f, 1e-2f); var layer = new AveragePoolingLayer(kernel, stride, padding); checker.CheckExhaustive(layer, bottom, top); }
public void InnerProductLayer_BackwardGradient(int output, FillerConfiguration weightsFiller, FillerConfiguration biasFiller) { bool useBias = biasFiller != null; var config = new InnerProductLayerConfiguration(output, useBias, weightsFiller, biasFiller); var layer = new InnerProductLayer(config); var checker = new GradientChecker(1e-4f, 1e-3f); checker.CheckExhaustive(layer, bottom, top); }
public void InnerProductLayer_BackwardGradient(int output, FillerConfiguration weightsFiller, FillerConfiguration biasFiller) { bool useBias = biasFiller != null; var config = new InnerProductLayerConfiguration(output, useBias, weightsFiller, biasFiller); var layer = new InnerProductLayer(config); var checker = new GradientChecker(1e-4f, 1e-3f); checker.CheckExhaustive(layer, bottom, top); }
public void AveragePoolingLayer_BackwardGradient(Size kernel, Size stride, Size padding) { var filler = new ConstantFiller(2.0d); filler.Fill(bottom); var checker = new GradientChecker(1e-2f, 1e-2f); var layer = new AveragePoolingLayer(kernel, stride, padding); checker.CheckExhaustive(layer, bottom, top); }