code: public static ComputationGraph importKerasModelAndWeights(String modelHdf5Filename, int[] inputShape,
                                                                boolean enforceTrainingConfig)
              throws IOException, UnsupportedKerasConfigurationException, InvalidKerasConfigurationException {
          KerasModel kerasModel = new KerasModel().modelBuilder.modelHdf5Filename(modelHdf5Filename)
                  .enforceTrainingConfig(enforceTrainingConfig).inputShape(inputShape).buildModel();
          return kerasModel.getComputationGraph();
      }
docs: Load Keras (Functional API) Model saved using model.save_model(...).
  
  @param modelHdf5Filename     path to HDF5 archive storing Keras Model
  @param inputShape            optional input shape for models that come without such (e.g. notop = false models)
  @param enforceTrainingConfig whether to enforce training configuration options
  @return ComputationGraph
  @throws IOException                            IO exception
  @throws InvalidKerasConfigurationException     Invalid Keras config
  @throws UnsupportedKerasConfigurationException Unsupported Keras config
  @see ComputationGraph