MCPcopy
hub / github.com/Turing-Project/WriteGPT / readfile

Function readfile

RecognizaitonNetwork/train/train.py:44–54  ·  view source on GitHub ↗
(filename)

Source from the content-addressed store, hash-verified

42 return tf.Session(config=tf.ConfigProto(gpu_options=gpu_options))
43
44def readfile(filename):
45 res = []
46 with open(filename, 'r') as f:
47 lines = f.readlines()
48 for i in lines:
49 res.append(i.strip())
50 dic = {}
51 for i in res:
52 p = i.split(' ')
53 dic[p[0]] = p[1:]
54 return dic
55
56class random_uniform_num():
57 """

Callers 1

genFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected