API Reference
KerasModelImport API — all import methods and configuration options
Keras Model Import API Reference
Importing Functional API (ComputationGraph) Models
importKerasModelAndWeights (InputStream)
public static ComputationGraph importKerasModelAndWeights(
InputStream modelHdf5Stream,
boolean enforceTrainingConfig)
throws IOException, UnsupportedKerasConfigurationException, InvalidKerasConfigurationExceptionimportKerasModelAndWeights (file path)
importKerasModelAndWeights (JSON config + weights)
importKerasModelConfiguration
Importing Sequential (MultiLayerNetwork) Models
importKerasSequentialModelAndWeights (InputStream)
importKerasSequentialModelAndWeights (file path)
importKerasSequentialModelAndWeights (JSON config + weights)
importKerasSequentialConfiguration
Exception Types
Exception
Meaning
enforceTrainingConfig Flag
Method Selection Guide
Situation
Method to use
Last updated
Was this helpful?