MCPcopy Index your code
hub / github.com/TorchSSL/TorchSSL / over_write_args_from_file

Function over_write_args_from_file

utils.py:8–14  ·  view source on GitHub ↗
(args, yml)

Source from the content-addressed store, hash-verified

6
7
8def over_write_args_from_file(args, yml):
9 if yml == '':
10 return
11 with open(yml, 'r', encoding='utf-8') as f:
12 dic = yaml.load(f.read(), Loader=yaml.Loader)
13 for k in dic:
14 setattr(args, k, dic[k])
15
16
17def setattr_cls_from_kwargs(cls, kwargs):

Callers 13

remixmatch.pyFile · 0.90
fixmatch.pyFile · 0.90
pseudolabel.pyFile · 0.90
fullysupervised.pyFile · 0.90
uda.pyFile · 0.90
flexmatch.pyFile · 0.90
pimodel.pyFile · 0.90
vat.pyFile · 0.90
softmatch.pyFile · 0.90
mixmatch.pyFile · 0.90
meanteacher.pyFile · 0.90

Calls 1

loadMethod · 0.80

Tested by

no test coverage detected