class_docstr: Basic CNN model for tensorflow eager execution.
class_docstr_tok: ["Basic","CNN","model","for","tensorflow","eager","execution","."]
code: def __init__(
      self,
      nb_classes=10,
      nb_filters=64,
      dummy_input=tf.zeros((32, 28, 28, 1)),
  ):
      Model.__init__(self, nb_classes=nb_classes)
  
      # Parametes
      # number of filters, number of classes.
      self.nb_filters = nb_filters
      self.nb_classes = nb_classes
  
      # Lists for layers attributes.
      # layer names , layers, layer activations
      self.layer_names = [
          "input",
          "conv_1",
          "conv_2",
          "conv_3",
          "flatten",
          "logits",
      ]
      self.layers = {}
      self.layer_acts = {}
  
      # layer definitions
      self.layers["conv_1"] = tf.layers.Conv2D(
          filters=self.nb_filters,
          kernel_size=8,
          strides=2,
          padding="same",
          activation=tf.nn.relu,
      )
      self.layers["conv_2"] = tf.layers.Conv2D(
          filters=self.nb_filters * 2,
          kernel_size=6,
          strides=2,
          padding="valid",
          activation=tf.nn.relu,
      )
      self.layers["conv_3"] = tf.layers.Conv2D(
          filters=self.nb_filters * 2,
          kernel_size=5,
          strides=1,
          padding="valid",
          activation=tf.nn.relu,
      )
      self.layers["flatten"] = tf.layers.Flatten()
      self.layers["logits"] = tf.layers.Dense(
          self.nb_classes, activation=None
      )
  
      # Dummy fprop to activate the network.
      self.fprop(dummy_input)
  
file_path: cleverhans/cleverhans_v3.1.0/cleverhans_tutorials/tutorial_models_tfe.py
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  from __future__ import unicode_literals
  import tensorflow
  from cleverhans.model import Model
label_desc: Use image node_id 1 to create a new ModelBasicCNNTFE object from inherited base classes: Model with example: obj = ModelBasicCNNTFE(nb_classes, nb_filters, dummy_input)