Update for 04-17-22
This commit is contained in:
parent
c63d8e6dba
commit
342c064a8b
|
@ -4,8 +4,24 @@ import pickle
|
|||
import numpy as np
|
||||
from warnings import warn
|
||||
|
||||
c = 1.0
|
||||
pickle_name = "freq_wattdata_"+str(c)+".pkl"
|
||||
with open("frq", "r") as file:
|
||||
frq = int(file.read())
|
||||
|
||||
with open("bay", "r") as file:
|
||||
bay = int(file.read())
|
||||
|
||||
if frq == 1:
|
||||
model_t = "freq"
|
||||
with open("tmp", "r") as file:
|
||||
size = float(file.read())
|
||||
|
||||
if bay == 1:
|
||||
model_t = "bayes"
|
||||
with open("tmp", "r") as file:
|
||||
wide = int(file.read())
|
||||
|
||||
pickle_name = "{}_wattdata_{}.pkl".format(model_t,size)
|
||||
#print("GPU energy file config: {}".format(pickle_name))
|
||||
|
||||
def get_sample_of_gpu():
|
||||
from re import sub, findall
|
||||
|
@ -48,7 +64,7 @@ if __name__ == '__main__':
|
|||
pickle.dump(dataDump, f)
|
||||
except EOFError:
|
||||
warn('Pickle ran out of space')
|
||||
c += 0.01
|
||||
size += 0.01
|
||||
finally:
|
||||
f.close()
|
||||
|
||||
|
|
Loading…
Reference in New Issue