Resultats TF sequentielles

This commit is contained in:
Harle, Antoine (Contracteur) 2019-11-11 17:12:16 -05:00
parent 4f5a309bcc
commit a389920de3
14 changed files with 5863 additions and 1 deletions

View file

@ -671,7 +671,7 @@ def run_dist_dataugV2(model, epochs=1, inner_it=0, dataug_epoch_start=0, print_f
optim_copy(dopt=diffopt, opt=inner_opt)
meta_opt.step()
model['data_aug'].adjust_prob(soft=True) #Contrainte sum(proba)=1
model['data_aug'].adjust_prob(soft=False) #Contrainte sum(proba)=1
fmodel = higher.patch.monkeypatch(model, device=None, copy_initial_weights=True)
diffopt = higher.optim.get_diff_optim(inner_opt, model.parameters(),fmodel=fmodel, track_higher_grads=high_grad_track)