MCPcopy Index your code
hub / github.com/Turing-Project/WriteGPT / save_variable

Function save_variable

LanguageNetwork/BERT/utils/dataio.py:90–97  ·  view source on GitHub ↗

:param variable: :param path: :return:

(variable, path)

Source from the content-addressed store, hash-verified

88
89
90def save_variable(variable, path):
91 """
92 :param variable:
93 :param path:
94 :return:
95 """
96 import pickle
97 return pickle.dump(variable, open(path, 'wb'))
98
99
100def load_file_name(path):

Callers 1

load_predict_gen_vectorFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected