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

Function load_variable

LanguageNetwork/BERT/utils/dataio.py:55–61  ·  view source on GitHub ↗

:param path: :return:

(path)

Source from the content-addressed store, hash-verified

53
54
55def load_variable(path):
56 """
57 :param path:
58 :return:
59 """
60 import pickle
61 return pickle.load(open(path, 'rb'))
62
63
64def save_txt_file(data, path, end='\n'):

Callers 1

load_predict_gen_vectorFunction · 0.90

Calls 1

loadMethod · 0.45

Tested by

no test coverage detected