code: private int getInputDimFromConfig(Map<String, Object> layerConfig) throws InvalidKerasConfigurationException {
          Map<String, Object> innerConfig = KerasLayerUtils.getInnerLayerConfigFromConfig(layerConfig, conf);
          if (!innerConfig.containsKey(conf.getLAYER_FIELD_INPUT_DIM()))
              throw new InvalidKerasConfigurationException(
                      "Keras Embedding layer config missing " + conf.getLAYER_FIELD_INPUT_DIM() + " field");
          return (int) innerConfig.get(conf.getLAYER_FIELD_INPUT_DIM());
      }
docs: Get Keras input dimension from Keras layer configuration.
  
  @param layerConfig dictionary containing Keras layer configuration
  @return input dim as int