src/core/layer/convolutional/AbstractConvolutionalLayer.java
public void initializeDimensions() throws NeuralNetworkException {
        previousLayerWidth = getPreviousLayerWidth();
        previousLayerHeight = getPreviousLayerHeight();
        previousLayerDepth = getPreviousLayerDepth();

        int layerWidth = getCurrentLayerWidth();
        int layerHeight = getCurrentLayerHeight();

        if (layerWidth < 1) throw new NeuralNetworkException("Convolutional layer width cannot be less than 1: " + layerWidth);
        if (layerHeight < 1) throw new NeuralNetworkException("Convolutional layer height cannot be less than 1: " + layerHeight);
        if (numberOfFilters < 1) throw new NeuralNetworkException("At least one filter must be defined");

        setLayerWidth(layerWidth);
        setLayerHeight(layerHeight);
        setLayerDepth(numberOfFilters);
    }
/**
     * Initializes neural network layer dimensions.
     *
     * @throws NeuralNetworkException thrown if initialization of layer fails.
     */
Initializes neural network layer dimensions.

@throws NeuralNetworkException thrown if initialization of layer fails.
Initializes neural network layer dimensions . @throws NeuralNetworkException thrown if initialization of layer fails .
public void initializeDimensions() throws NeuralNetworkException {
        previousLayerWidth = getPreviousLayerWidth();
        previousLayerHeight = getPreviousLayerHeight();
        previousLayerDepth = getPreviousLayerDepth();
        int layerWidth = getCurrentLayerWidth();
        int layerHeight = getCurrentLayerHeight();
        if (layerWidth < 1) throw new NeuralNetworkException("Convolutional layer width cannot be less than 1: " + layerWidth);
        if (layerHeight < 1) throw new NeuralNetworkException("Convolutional layer height cannot be less than 1: " + layerHeight);
        if (numberOfFilters < 1) throw new NeuralNetworkException("At least one filter must be defined");
        setLayerWidth(layerWidth);
        setLayerHeight(layerHeight);
        setLayerDepth(numberOfFilters);
    }
public void initializeDimensions ( ) throws NeuralNetworkException { previousLayerWidth = getPreviousLayerWidth ( ) ; previousLayerHeight = getPreviousLayerHeight ( ) ; previousLayerDepth = getPreviousLayerDepth ( ) ; int layerWidth = getCurrentLayerWidth ( ) ; int layerHeight = getCurrentLayerHeight ( ) ; if ( layerWidth < 1 ) throw new NeuralNetworkException ( "Convolutional layer width cannot be less than 1: " + layerWidth ) ; if ( layerHeight < 1 ) throw new NeuralNetworkException ( "Convolutional layer height cannot be less than 1: " + layerHeight ) ; if ( numberOfFilters < 1 ) throw new NeuralNetworkException ( "At least one filter must be defined" ) ; setLayerWidth ( layerWidth ) ; setLayerHeight ( layerHeight ) ; setLayerDepth ( numberOfFilters ) ; }
Initializes neural network layer dimensions.
Initializes neural network layer dimensions .