Skip to content

Commit

Permalink
black reformatting
Browse files Browse the repository at this point in the history
  • Loading branch information
pattonw committed Aug 29, 2024
1 parent b438fc0 commit c0e9cc5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion gunpowder/torch/nodes/train.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,9 @@ def __init__(
# not yet implemented
gradients = gradients
loss_inputs = {f"loss_{k}": v for k, v in loss_inputs.items()}
all_inputs: dict[str | int, Any] = {f"{k}": v for k, v in inputs.items() if v not in outputs.values()}
all_inputs: dict[str | int, Any] = {
f"{k}": v for k, v in inputs.items() if v not in outputs.values()
}
all_inputs.update(
{k: v for k, v in loss_inputs.items() if v not in outputs.values()}
)
Expand Down

0 comments on commit c0e9cc5

Please sign in to comment.