MCPcopy Create free account
hub / github.com/Pints-AI/1.5-Pints / __init__

Method __init__

lit_gpt/utils.py:173–177  ·  view source on GitHub ↗
(self, saver, *args, **kwargs)

Source from the content-addressed store, hash-verified

171
172class IncrementalPyTorchPickler(pickle.Pickler):
173 def __init__(self, saver, *args, **kwargs):
174 super().__init__(*args, **kwargs)
175 self.storage_dtypes = {}
176 self.saver = saver
177 self.id_map = {}
178
179 # this logic is taken from PyTorch 2.0+ torch/serialization.py
180 def persistent_id(self, obj):

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected