MCPcopy Create free account
hub / github.com/breeze-sys/Label-Only-MIA-Go / save_code

Function save_code

python_server/utils.py:284–294  ·  view source on GitHub ↗
(path)

Source from the content-addressed store, hash-verified

282 m.bias.data.zero_()
283
284def save_code(path):
285 os.makedirs(path + '/code', exist_ok=True)
286 #files=os.listdir(args.logdir + '/code',)
287 #code_num = len([path for path in files if 'code' in path])
288 #os.makedirs(args.logdir + '/code' + '/code_'+str(code_num), exist_ok=True)
289 shutil.copyfile('main.py', path + '/code/main.py')
290 shutil.copyfile('deeplearning.py', path + '/code/deeplearning.py')
291 shutil.copyfile('classifier.py', path + '/code/classifier.py')
292 shutil.copyfile('utils.py', path + '/code/utils.py')
293 shutil.copyfile('plot.py', path + '/code/plot.py')
294 shutil.copyfile('attack.py', path + '/code/attack.py')

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected