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

Method __init__

lit_gpt/utils_old.py:310–314  ·  view source on GitHub ↗
(self, saver, *args, **kwargs)

Source from the content-addressed store, hash-verified

308
309class IncrementalPyTorchPickler(pickle.Pickler):
310 def __init__(self, saver, *args, **kwargs):
311 super().__init__(*args, **kwargs)
312 self.storage_dtypes = {}
313 self.saver = saver
314 self.id_map = {}
315
316 # this logic is taken from PyTorch 2.0+ torch/serialization.py
317 def persistent_id(self, obj):

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected