class_docstr: Load pretrained grid refiner and evaluate a feature grid.
    
class_docstr_tok: ["Load","pretrained","grid","refiner","and","evaluate","a","feature","grid","."]
docstr: Initialize computation graph for tensorflow.
      
docstr_tok: ["Initialize","computation","graph","for","tensorflow","."]
code: def _init_graph(self):
      """Initialize computation graph for tensorflow."""
      with self.graph.as_default():
          self.lig = lig.LocalImplicitGrid(
              size=self.size,
              in_features=self.in_features,
              out_features=self.out_features,
              num_filters=self.num_filters,
              net_type=self.net_type,
              method=self.method,
              x_location_max=self.x_location_max,
              min_grid_value=self.min_grid_value,
              max_grid_value=self.max_grid_value,
              name="lig",
          )
  
          self.pts_ph = tf.placeholder(
              tf.float32, shape=[self.point_batch, 3]
          )
          self.latgrid_ph = tf.placeholder(
              tf.float32,
              shape=[
                  self.size[0],
                  self.size[1],
                  self.size[2],
                  self.in_features,
              ],
          )
          self.latgrid = self.latgrid_ph[tf.newaxis]
          self.points = self.pts_ph[tf.newaxis]
          vals = self.lig(
              self.latgrid, self.points, training=False
          )  # [1,npts,1]
          self.vals = tf.squeeze(vals, axis=[0, 2])  # [npts]
          self.map_dict = self._get_var_mapping(model=self.lig)
          self.saver = tf.train.Saver(self.map_dict)
          self.sess = tf.Session()
          self.saver.restore(self.sess, self.ckpt)
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import ast
  import numpy
  import tensorflow.compat.v1
  from tensorflow.compat.v1.io import gfile
  from tensorflow_graphics.projects.local_implicit_grid.core import implicit_nets
  from tensorflow_graphics.projects.local_implicit_grid.core import local_implicit_grid_layer
  from tensorflow_graphics.projects.local_implicit_grid.core import model_g2g
  from tensorflow_graphics.projects.local_implicit_grid.core import model_g2v
label_desc: Use image node_id 2 for calling the LIGEvaluator obj's underlying member method code with example usage: obj._init_graph() without return types