class_docstr: The class :class:`ModelLayer` converts a :class:`Model` to a :class:`Layer` instance.
  
  Note that only a :class:`Model` with specified inputs and outputs can be converted to a :class:`ModelLayer`.
  For example, a customized model in dynamic eager mode normally does NOT have specified inputs and outputs so the
  customized model in dynamic eager mode can NOT be converted to a :class:`ModelLayer`.
  
  Parameters
  ----------
  model: tl.models.Model
      A model.
  name : str or None
      A unique layer name. If None, a unique name will be automatically assigned.
  
  Methods
  ---------
  __init__()
      Initializing the ModelLayer.
  weights()
      Same as the weights of the given model.
  build()
      Do nothing because the given model has already been built.
  forward()
      Forward the computation. Simply call the forward() of the given model.
class_docstr_tok: ["The","class",":","class",":","`","ModelLayer","`","converts","a",":","class",":","`","Model","`","to","a",":","class",":","`","Layer","`","instance",".","Note","that","only","a",":","class",":","`","Model","`","with","specified","inputs","and","outputs","can","be","converted","to","a",":","class",":","`","ModelLayer","`",".","For","example",",","a","customized","model","in","dynamic","eager","mode","normally","does","NOT","have","specified","inputs","and","outputs","so","the","customized","model","in","dynamic","eager","mode","can","NOT","be","converted","to","a",":","class",":","`","ModelLayer","`",".","Parameters","--","--","--","--","--","model",":","tl.models.Model","A","model",".","name",":","str","or","None","A","unique","layer","name",".","If","None",",","a","unique","name","will","be","automatically","assigned",".","Methods","--","--","--","--","-","__init__","(",")","Initializing","the","ModelLayer",".","weights","(",")","Same","as","the","weights","of","the","given","model",".","build","(",")","Do","nothing","because","the","given","model","has","already","been","built",".","forward","(",")","Forward","the","computation",".","Simply","call","the","forward","(",")","of","the","given","model","."]
docstr: fix LayerNodes to stop growing for this ModelLayer.
code: def _fix_nodes_for_layers(self):
      """fix LayerNodes to stop growing for this ModelLayer."""
      self._nodes_fixed = True
      self.model._fix_nodes_for_layers()
  
imports: import inspect
  from abc import abstractmethod
  import tensorflow
  import tensorlayer
  from tensorlayer import logging
  from tensorlayer.decorators import deprecated_alias, private_method, protected_method
  from tensorlayer.files import utils
  from tensorlayer.layers.utils import get_variable_with_initializer, list_remove_repeat
label_desc: Use image node_id 6 for calling the ModelLayer obj's underlying member method code with example usage: obj._fix_nodes_for_layers() without return types