class_docstr: Estimators Graph is only build when fit/predict or evaluate is called.
      
class_docstr_tok: ["Estimators","Graph","is","only","build","when","fit\/predict","or","evaluate","is","called","."]
code: def _init_graph(self):
      # Initialize all weights
      if not self._is_initialized:
          self.saver = tf.train.Saver()
          init_vars = tf.group(
              tf.global_variables_initializer(),
              resources.initialize_resources(
                  resources.shared_resources()
              ),
          )
          self.session.run(init_vars)
          self._is_initialized = True
      # Restore weights if needed
      if self._to_be_restored:
          self.saver = tf.train.Saver()
          self.saver.restore(self.session, self._to_be_restored)
          self._to_be_restored = False
  
imports: from __future__ import division, print_function, absolute_import
  import os
  import tensorflow.compat.v1
  from tensorflow.python.ops import resources
  from ..utils import validate_func
label_desc: Use image node_id 2 for calling the BaseEstimator obj's underlying member method code with example usage: obj._init_graph() without return types