plenoptic.io.examine_saved_synthesis#

plenoptic.io.examine_saved_synthesis(file_path, map_location=None)[source]#

Examine saved synthesis object.

This is used for debugging, it will print out information about the versions used, names of the callable attributes, shapes of tensor attributes, etc.

Parameters:
  • file_path (str) – The path to load the synthesis object from.

  • map_location (str | None (default: None)) – Argument to pass to torch.load as map_location. If you save stuff that was being run on a GPU and are loading onto a CPU, you’ll need this to make sure everything lines up properly. This should be structured like the str you would pass to torch.device.