public void GradientWrtParametersCheck() { const int inputWidth = 2; const int inputHeight = 2; const int inputDepth = 2; const int batchSize = 3; // Create layer var layer = new FullyConnLayer <double>(2) { BiasPref = 0.1 }; GradientCheckTools.GradienWrtParameterstCheck(inputWidth, inputHeight, inputDepth, batchSize, layer); }
public void GradientWrtParametersCheck() { const int inputWidth = 10; const int inputHeight = 10; const int inputDepth = 2; const int filterWidth = 3; const int filterHeight = 3; const int filterCount = 2; const int batchSize = 1; // Create layer var layer = new ConvLayer <double>(filterWidth, filterHeight, filterCount) { Stride = 2 }; //BiasPref = 0.1 GradientCheckTools.GradienWrtParameterstCheck(inputWidth, inputHeight, inputDepth, batchSize, layer); }