class_docstr: An implementation of `Model` that wraps a Keras model. It
  specifically exposes the hidden features of a model by creating new models.
  The symbolic graph is reused and so there is little overhead. Splitting
  in-place operations can incur an overhead.
class_docstr_tok: ["An","implementation","of","`","Model","`","that","wraps","a","Keras","model",".","It","specifically","exposes","the","hidden","features","of","a","model","by","creating","new","models",".","The","symbolic","graph","is","reused","and","so","there","is","little","overhead",".","Splitting","in-place","operations","can","incur","an","overhead","."]
docstr: Expose the hidden features of a model given a layer name.
  :param x: A symbolic representation of the network input
  :param layer: The name of the hidden layer to return features at.
  :return: A symbolic representation of the hidden features
  :raise: NoSuchLayerError if `layer` is not in the model.
docstr_tok: ["Expose","the","hidden","features","of","a","model","given","a","layer","name",".",":","param","x",":","A","symbolic","representation","of","the","network","input",":","param","layer",":","The","name","of","the","hidden","layer","to","return","features","at",".",":","return",":","A","symbolic","representation","of","the","hidden","features",":","raise",":","NoSuchLayerError","if","`","layer","`","is","not","in","the","model","."]
code: def get_layer(self, x, layer):
      """
      Expose the hidden features of a model given a layer name.
      :param x: A symbolic representation of the network input
      :param layer: The name of the hidden layer to return features at.
      :return: A symbolic representation of the hidden features
      :raise: NoSuchLayerError if `layer` is not in the model.
      """
      # Return the symbolic representation for this layer.
      output = self.fprop(x)
      try:
          requested = output[layer]
      except KeyError:
          raise NoSuchLayerError()
      return requested
  
file_path: cleverhans/cleverhans_v3.1.0/cleverhans/utils_keras.py
imports: from distutils.version import LooseVersion
  import warnings
  import tensorflow
  from .model import Model, NoSuchLayerError
label_desc: Use image node_id 9 for calling the KerasModelWrapper obj's underlying member method code with example usage: obj.get_layer(x, layer) and returns: requested