Skip to content

Commit

Permalink
update precision interface
Browse files Browse the repository at this point in the history
  • Loading branch information
sangkeun00 committed May 25, 2023
1 parent e2a7651 commit f66ed65
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions examples/learning_to_reweight/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

parser = argparse.ArgumentParser(description="Meta_Weight_Net")
parser.add_argument("--device", type=str, default="cuda")
parser.add_argument("--fp16", action="store_true")
parser.add_argument("--precision", type=str, default="fp32")
parser.add_argument("--strategy", type=str, default="default")
parser.add_argument("--rollback", action="store_true")
parser.add_argument("--seed", type=int, default=0)
Expand Down Expand Up @@ -151,8 +151,10 @@ def validation(self):
return {"acc": acc, "best_acc": best_acc}


outer_config = Config(type="darts", fp16=args.fp16, log_step=100, retain_graph=True)
inner_config = Config(type="darts", fp16=args.fp16, unroll_steps=1)
outer_config = Config(
type="darts", precision=args.precision, log_step=100, retain_graph=True
)
inner_config = Config(type="darts", precision=args.precision, unroll_steps=1)
engine_config = EngineConfig(
train_iters=15000,
valid_step=100,
Expand Down

0 comments on commit f66ed65

Please sign in to comment.