code: public static Activation getActivationFromConfig(Map<String, Object> layerConfig, KerasLayerConfiguration conf)
              throws InvalidKerasConfigurationException, UnsupportedKerasConfigurationException {
          Map<String, Object> innerConfig = KerasLayerUtils.getInnerLayerConfigFromConfig(layerConfig, conf);
          if (!innerConfig.containsKey(conf.getLAYER_FIELD_ACTIVATION()))
              throw new InvalidKerasConfigurationException("Keras layer is missing "
                      + conf.getLAYER_FIELD_ACTIVATION() + " field");
          return mapToActivation((String) innerConfig.get(conf.getLAYER_FIELD_ACTIVATION()), conf);
      }
docs: Get activation enum value from Keras layer configuration.
  
  @param layerConfig dictionary containing Keras layer configuration
  @return DL4J activation enum value
  @throws InvalidKerasConfigurationException     Invalid Keras config
  @throws UnsupportedKerasConfigurationException Unsupported Keras config