public class ModelGuesser extends Object
| Constructor and Description |
|---|
ModelGuesser() |
| Modifier and Type | Method and Description |
|---|---|
static Object |
loadConfigGuess(InputStream stream)
Load the model from the given input stream
|
static Object |
loadConfigGuess(String path)
Load the model from the given file path
|
static Model |
loadModelGuess(InputStream stream)
Load the model from the given input stream.
|
static Model |
loadModelGuess(InputStream stream,
File tempDirectory)
As per
loadModelGuess(InputStream) but (optionally) allows copying to the specified temporary directory |
static Model |
loadModelGuess(String path)
Load the model from the given file path
|
static Normalizer<?> |
loadNormalizer(InputStream is)
|
static Normalizer<?> |
loadNormalizer(String path)
A facade for
ModelSerializer.restoreNormalizerFromFile(File) |
public static Normalizer<?> loadNormalizer(InputStream is) throws IOException
is - the input stream to load formIOExceptionpublic static Normalizer<?> loadNormalizer(String path)
ModelSerializer.restoreNormalizerFromFile(File)path - the path to the filepublic static Object loadConfigGuess(String path) throws Exception
path - the path of the file to "guess"Exceptionpublic static Object loadConfigGuess(InputStream stream) throws Exception
stream - the path of the file to "guess"Exceptionpublic static Model loadModelGuess(String path) throws Exception
path - the path of the file to "guess"Exceptionpublic static Model loadModelGuess(InputStream stream) throws Exception
DL4JSystemProperties.DL4J_TEMP_DIR_PROPERTYstream - the path of the file to "guess"Exceptionpublic static Model loadModelGuess(InputStream stream, File tempDirectory) throws Exception
loadModelGuess(InputStream) but (optionally) allows copying to the specified temporary directorystream - Stream of the model filetempDirectory - Temporary/working directory. May be null.ExceptionCopyright © 2019. All rights reserved.