public static void assertNInNOutSet ( String layerType , String layerName , long layerIndex , long nIn , long nOut ) { if ( nIn <= 0 || nOut <= 0 ) { if ( layerName == null ) layerName = "(name not set)" ; throw new DL4JInvalidConfigException ( layerType + " (index=" + layerIndex + ", name=" + layerName + ") nIn=" + nIn + ", nOut=" + nOut + "; nIn and nOut must be > 0" ) ; } }
Asserts that the layer nIn and nOut values are set for the layer