MCPcopy Create free account
hub / github.com/huggingface/transformers / pickle_save

Function pickle_save

examples/seq2seq/utils.py:188–191  ·  view source on GitHub ↗

pickle.dump(obj, path)

(obj, path)

Source from the content-addressed store, hash-verified

186
187
188def pickle_save(obj, path):
189 """pickle.dump(obj, path)"""
190 with open(path, "wb") as f:
191 return pickle.dump(obj, f)
192
193
194def flatten_list(summary_ids: List[List]):

Callers 2

__init__Method · 0.90
mainFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected