Backend
DL4J Keras model import is backend-agnostic — models trained with TensorFlow, Theano, or CNTK backends can all be imported into Eclipse Deeplearning4j 1.0.0-rewrite.
Supported Backends
Keras backend
Import supported
Notes
Theano vs. TensorFlow Weight Ordering
Detecting the Backend from an HDF5 File
import h5py, json
with h5py.File("model.h5", "r") as f:
config = json.loads(f.attrs["model_config"])
backend = config.get("backend", "tensorflow")
print("Backend:", backend)Keras Version Compatibility
Keras major version
Supported
Notes
Backend Configuration in DL4J
Saving a Keras Model for Import
Import Examples
Notes
Last updated
Was this helpful?