class_docstr: A class implements tf.keras.Model.
  
  Reference: https://arxiv.org/abs/1807.11626
class_docstr_tok: ["A","class","implements","tf.keras.Model",".","Reference",":","https",":","\/\/arxiv.org\/abs\/1807.11626"]
docstr: 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.
docstr_tok: ["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","."]
code: 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()
  
imports: import collections
  import itertools
  import math
  from absl import logging
  import numpy
  import six
  from six.moves import xrange
  import tensorflow
  import utils
label_desc: Use image node_id 1 to create a new Model object from inherited base classes: tf.keras with example: obj = Model(blocks_args, global_params, name)