public static File createTempFile(String prefix, String suffix) {
        String p = System.getProperty(DL4JSystemProperties.DL4J_TEMP_DIR_PROPERTY);
        try {
            if (p == null || p.isEmpty()) {
                return File.createTempFile(prefix, suffix);
            } else {
                return File.createTempFile(prefix, suffix, new File(p));
            }
        } catch (IOException e){
            throw new RuntimeException("Error creating temporary file", e);
        }
    }
public static File createTempFile ( String prefix , String suffix ) { String p = System . getProperty ( DL4JSystemProperties . DL4J_TEMP_DIR_PROPERTY ) ; try { if ( p == null || p . isEmpty ( ) ) { return File . createTempFile ( prefix , suffix ) ; } else { return File . createTempFile ( prefix , suffix , new File ( p ) ) ; } } catch ( IOException e ) { throw new RuntimeException ( "Error creating temporary file" , e ) ; } }
Create a temporary file in the location specified by {@link DL4JSystemProperties#DL4J_TEMP_DIR_PROPERTY} if set,
or the default temporary directory (usually specified by java.io.tmpdir system property)
@param prefix Prefix for generating file's name; must be at least 3 characeters
@param suffix Suffix for generating file's name; may be null (".tmp" will be used if null)
@return A temporary file