class_docstr: Network for generating voxels from latent codes.
class_docstr_tok: ["Network","for","generating","voxels","from","latent","codes","."]
docstr: Initialize the checkpoints.
docstr_tok: ["Initialize","the","checkpoints","."]
code: def init_checkpoint(self, checkpoint_dir, checkpoint=None):
      """Initialize the checkpoints."""
      self.summary_writer = tf.summary.create_file_writer(
          checkpoint_dir
      )
      self.checkpoint = tf.train.Checkpoint(
          model=self.model,
          latent_code_var=self.latent_code_vars,
          optimizer_network=self.optimizer_network,
          optimizer_latent=self.optimizer_latent,
          epoch=self.latest_epoch,
          global_step=self.global_step,
      )
      self.manager = tf.train.CheckpointManager(
          checkpoint=self.checkpoint,
          directory=checkpoint_dir,
          max_to_keep=2,
      )
      self.load_checkpoint(checkpoint=checkpoint)
  
file_path: graphics/tensorflow_graphics/projects/radiance_fields/sharf/geometry_net/model.py
imports: from absl import logging
  import tensorflow
  import tensorflow_graphics.projects.radiance_fields.sharf.geometry_net.layers
  import tensorflow_graphics.projects.radiance_fields.sharf.voxel_functions
label_desc: Use image node_id 5 for calling the GeometryNetwork obj's underlying member method code with example usage: obj.init_checkpoint(checkpoint_dir, checkpoint) without return types