Skip to content

Commit

Permalink
remove useless kwargs
Browse files Browse the repository at this point in the history
  • Loading branch information
Salem Lahlou committed Jan 24, 2025
1 parent 4312107 commit 752b937
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/gfn/gflownet/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ def to_training_samples(self, trajectories: Trajectories) -> TrainingSampleType:
"""Converts trajectories to training samples. The type depends on the GFlowNet."""

@abstractmethod
def loss(self, env: Env, training_objects: Any, **kwargs: Any):
def loss(self, env: Env, training_objects: Any):
"""Computes the loss given the training objects."""


Expand Down Expand Up @@ -113,11 +113,7 @@ def pf_pb_parameters(self):

@abstractmethod
def loss(
self,
env: Env,
training_objects: Any,
recalculate_all_logprobs: bool = False,
**kwargs: Any,
self, env: Env, training_objects: Any, recalculate_all_logprobs: bool = False
):
"""Computes the loss given the training objects.
Expand Down

0 comments on commit 752b937

Please sign in to comment.