class_docstr: Network for generating voxels from latent codes.
class_docstr_tok: ["Network","for","generating","voxels","from","latent","codes","."]
docstr: Load checkpoints.
docstr_tok: ["Load","checkpoints","."]
code: def load_checkpoint(self, checkpoint=None):
      """Load checkpoints."""
      if checkpoint is None:
          latest_checkpoint = self.manager.latest_checkpoint
      else:
          latest_checkpoint = checkpoint
      if latest_checkpoint is not None:
          logging.info("Checkpoint %s restored", latest_checkpoint)
          _ = self.checkpoint.restore(
              latest_checkpoint
          ).expect_partial()
          for a, b in zip(
              self.model_backup.variables, self.model.variables
          ):
              a.assign(b)
      else:
          logging.warning("No checkpoint was restored.")
  
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 6 for calling the GeometryNetwork obj's underlying member method code with example usage: obj.load_checkpoint(checkpoint) without return types