class_docstr: Load pretrained grid encoder and evaluate single crops.
class_docstr_tok: ["Load","pretrained","grid","encoder","and","evaluate","single","crops","."]
docstr: Strided evaluation of full grid into feature grid.
  
  Args:
    grid: [batch, gres, gres, gres, 1] input feature grid.
  Returns:
    codes: [batch, codelen] output feature gird.
docstr_tok: ["Strided","evaluation","of","full","grid","into","feature","grid",".","Args",":","grid",":","[","batch",",","gres",",","gres",",","gres",",","1","]","input","feature","grid",".","Returns",":","codes",":","[","batch",",","codelen","]","output","feature","gird","."]
code: def eval_grid(self, grid):
      """Strided evaluation of full grid into feature grid.
  
      Args:
        grid: [batch, gres, gres, gres, 1] input feature grid.
      Returns:
        codes: [batch, codelen] output feature gird.
      """
      # initialize output feature grid
      niters = int(np.ceil(grid.shape[0] / self.grid_batch))
      codes = []
      for idx in range(niters):
          sid = idx * self.grid_batch
          eid = min(sid + self.grid_batch, grid.shape[0])
  
          c = self.sess.run(
              self.lats, feed_dict={self.grid_ph: grid[sid:eid]}
          )
          codes.append(c)
      codes = np.concatenate(codes, axis=0)
      return codes.astype(np.float32)
  
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 3 for calling the EncoderEvaluator obj's underlying member method code with example usage: obj.eval_grid(grid) and returns: codes