All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.deeplearning4j.util.DeepLearningIOUtil Maven / Gradle / Ivy

There is a newer version: 1.0.0-M2.1
Show newest version
package org.deeplearning4j.util;

import java.io.BufferedInputStream;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.InputStream;

public class DeepLearningIOUtil {

	public static InputStream inputStreamFromPath(String path)  {
		try {
			return new BufferedInputStream(new FileInputStream(new File(path)));
		} catch (FileNotFoundException e) {
			throw new RuntimeException(e);
		}
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy