parameters: (self, blocks_args=None, global_params=None, name=None)
docstring: Initializes an `Model` instance.
  
          Args:
            blocks_args: A list of BlockArgs to construct block modules.
            global_params: GlobalParams, a set of global parameters.
            name: A string of layer name.
  
          Raises:
            ValueError: when blocks_args is not specified as a list.
docstring_summary: Initializes an `Model` instance.
docstring_tokens: Initializes an Model instance .
function: def __init__(self, blocks_args=None, global_params=None, name=None):
          """Initializes an `Model` instance.
  
          Args:
            blocks_args: A list of BlockArgs to construct block modules.
            global_params: GlobalParams, a set of global parameters.
            name: A string of layer name.
  
          Raises:
            ValueError: when blocks_args is not specified as a list.
          """
          super().__init__(name=name)
  
          if not isinstance(blocks_args, list):
              raise ValueError("blocks_args should be a list.")
          self._global_params = global_params
          self._blocks_args = blocks_args
          self._relu_fn = global_params.relu_fn or tf.nn.swish
          self._batch_norm = global_params.batch_norm
          self._fix_head_stem = global_params.fix_head_stem
  
          self.endpoints = None
  
          self._build()
function_tokens: def __init__ ( self , blocks_args = None , global_params = None , name = None ) : super ( ) . __init__ ( name = name ) if not isinstance ( blocks_args , list ) : raise ValueError ( "blocks_args should be a list." ) self . _global_params = global_params self . _blocks_args = blocks_args self . _relu_fn = global_params . relu_fn or tf . nn . swish self . _batch_norm = global_params . batch_norm self . _fix_head_stem = global_params . fix_head_stem self . endpoints = None self . _build ( )