Skip to content

Commit

Permalink
black upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
josephdviviano committed Feb 24, 2024
1 parent 6e2daee commit 1a54615
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
9 changes: 6 additions & 3 deletions tutorials/examples/train_box.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
python train_box.py --delta {0.1, 0.25} --tied {--uniform_pb} --loss {TB, DB}
"""

from argparse import ArgumentParser

import numpy as np
Expand Down Expand Up @@ -189,9 +190,11 @@ def main(args): # noqa: C901
if not args.uniform_pb:
optimizer.add_param_group(
{
"params": pb_module.last_layer.parameters()
if args.tied
else pb_module.parameters(),
"params": (
pb_module.last_layer.parameters()
if args.tied
else pb_module.parameters()
),
"lr": args.lr,
}
)
Expand Down
1 change: 1 addition & 0 deletions tutorials/examples/train_discreteebm.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
[Learning GFlowNets from partial episodes for improved convergence and stability](https://arxiv.org/abs/2209.12782)
python train_hypergrid.py --ndim {2, 4} --height 12 --R0 {1e-3, 1e-4} --tied --loss {TB, DB, SubTB}
"""

from argparse import ArgumentParser

import torch
Expand Down
1 change: 1 addition & 0 deletions tutorials/examples/train_hypergrid.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
[Learning GFlowNets from partial episodes for improved convergence and stability](https://arxiv.org/abs/2209.12782)
python train_hypergrid.py --ndim {2, 4} --height 12 --R0 {1e-3, 1e-4} --tied --loss {TB, DB, SubTB}
"""

from argparse import ArgumentParser

import torch
Expand Down

0 comments on commit 1a54615

Please sign in to comment.