public static Environment buildEnvironment ( ) { Environment environment = new Environment ( ) ; environment . setJavaVersion ( System . getProperty ( "java.specification.version" ) ) ; environment . setNumCores ( Runtime . getRuntime ( ) . availableProcessors ( ) ) ; environment . setAvailableMemory ( Runtime . getRuntime ( ) . maxMemory ( ) ) ; environment . setOsArch ( System . getProperty ( "os.arch" ) ) ; environment . setOsName ( System . getProperty ( "os.opName" ) ) ; environment . setBackendUsed ( Nd4j . getExecutioner ( ) . getClass ( ) . getSimpleName ( ) ) ; return environment ; }
This method build