class_docstr: This class implements a classifier with the TensorFlow v2 framework.
class_docstr_tok: ["This","class","implements","a","classifier","with","the","TensorFlow","v2","framework","."]
docstr: Return the hidden layers in the model, if applicable.
  
  :return: The hidden layers in the model, input and output layers excluded.
  
  .. warning:: `layer_names` tries to infer the internal structure of the model.
               This feature comes with no guarantees on the correctness of the result.
               The intended order of the layers tries to match their order in the model, but this is not
               guaranteed either.
docstr_tok: ["Return","the","hidden","layers","in","the","model",",","if","applicable",".",":","return",":","The","hidden","layers","in","the","model",",","input","and","output","layers","excluded",".","..","warning",":",":","`","layer_names","`","tries","to","infer","the","internal","structure","of","the","model",".","This","feature","comes","with","no","guarantees","on","the","correctness","of","the","result",".","The","intended","order","of","the","layers","tries","to","match","their","order","in","the","model",",","but","this","is","not","guaranteed","either","."]
code: def layer_names(self) -> Optional[List[str]]:
      """
      Return the hidden layers in the model, if applicable.
  
      :return: The hidden layers in the model, input and output layers excluded.
  
      .. warning:: `layer_names` tries to infer the internal structure of the model.
                   This feature comes with no guarantees on the correctness of the result.
                   The intended order of the layers tries to match their order in the model, but this is not
                   guaranteed either.
      """
      import tensorflow as tf
  
      if isinstance(
          self._model, (tf.keras.Model, tf.keras.models.Sequential)
      ):
          return [
              layer.name
              for layer in self._model.layers
              if hasattr(layer, "name")
          ]
  
      return None
  
imports: from __future__ import absolute_import, division, print_function, unicode_literals
  import logging
  import os
  import random
  import shutil
  import time
  from typing import Any, Callable, Dict, List, Optional, Tuple, Union, TYPE_CHECKING
  from tqdm.auto import tqdm
  import numpy
  import six
  from art import config
  from art.estimators.classification.classifier import ClassGradientsMixin, ClassifierMixin
  from art.estimators.tensorflow import TensorFlowEstimator, TensorFlowV2Estimator
  from art.utils import check_and_transform_label_format
label_desc: Use image node_id 17 for calling the TensorFlowV2Classifier obj's underlying member method code with example usage: obj.layer_names() and returns: None, unknown