public void EuclideanLossLayer_BackwardGradient() { var layer = new EuclideanLossLayer(); layer.Setup(bottom, top); var checker = new GradientChecker(1e-6f, 4e-1f); checker.CheckSingle(layer, bottom, top, -1, -1, -1); }
public void SoftmaxLayer_BackwardGradient() { var layer = new SoftmaxLayer(); layer.Setup(bottom, labels); var checker = new GradientChecker(1e-2f, 1e-2f); checker.CheckSingle(layer, bottom, labels, 0, -1, -1); }
public void SoftmaxLayer_BackwardGradient() { var layer = new SoftmaxLayer(); layer.Setup(bottom, labels); var checker = new GradientChecker(1e-2f, 1e-2f); checker.CheckSingle(layer, bottom, labels, 0, -1, -1); }
public void EuclideanLossLayer_BackwardGradient() { var layer = new EuclideanLossLayer(); layer.Setup(bottom, top); var checker = new GradientChecker(1e-6f, 4e-1f); checker.CheckSingle(layer, bottom, top, -1, -1, -1); }