Skip to content

Commit

Permalink
black
Browse files Browse the repository at this point in the history
  • Loading branch information
josephdviviano committed Feb 24, 2024
1 parent 552e010 commit 21b845d
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 6 deletions.
4 changes: 1 addition & 3 deletions src/gfn/gflownet/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -201,9 +201,7 @@ def get_pfs_and_pbs(

return log_pf_trajectories, log_pb_trajectories

def get_trajectories_scores(
self, trajectories: Trajectories
) -> Tuple[
def get_trajectories_scores(self, trajectories: Trajectories) -> Tuple[
TT["n_trajectories", torch.float],
TT["n_trajectories", torch.float],
TT["n_trajectories", torch.float],
Expand Down
4 changes: 1 addition & 3 deletions src/gfn/gflownet/detailed_balance.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,7 @@ def __init__(
self.forward_looking = forward_looking
self.log_reward_clip_min = log_reward_clip_min

def get_scores(
self, env: Env, transitions: Transitions
) -> Tuple[
def get_scores(self, env: Env, transitions: Transitions) -> Tuple[
TT["n_transitions", float],
TT["n_transitions", float],
TT["n_transitions", float],
Expand Down
1 change: 1 addition & 0 deletions src/gfn/gym/helpers/box_utils.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""This file contains utilitary functions for the Box environment."""

from typing import Tuple

import numpy as np
Expand Down
1 change: 1 addition & 0 deletions src/gfn/gym/hypergrid.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Copied and Adapted from https://github.com/Tikquuss/GflowNets_Tutorial
"""

from typing import Literal, Tuple

import torch
Expand Down

0 comments on commit 21b845d

Please sign in to comment.