Skip to content

Commit

Permalink
Fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
ultmaster committed Aug 4, 2020
1 parent 9535466 commit 0892e66
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sdk/pynni/nni/nas/pytorch/cream/trainer.py
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ def raw_sgd(w, g):
(prec1 > self.best_children_pool[-1][1] and cand_flops < self.best_children_pool[-1][2])):
val_prec1 = prec1
training_data = deepcopy(input_data[:self.slices].detach())
if self.best_children_pool:
if not self.best_children_pool:
features = deepcopy(output[:self.slices].detach())
else:
features = deepcopy(teacher_output[:self.slices].detach())
Expand Down

0 comments on commit 0892e66

Please sign in to comment.