Skip to content

Commit

Permalink
add typehint for dict
Browse files Browse the repository at this point in the history
  • Loading branch information
pattonw committed Aug 29, 2024
1 parent bc5e6b0 commit b438fc0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gunpowder/torch/nodes/train.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ def __init__(
# not yet implemented
gradients = gradients
loss_inputs = {f"loss_{k}": v for k, v in loss_inputs.items()}
all_inputs = {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 b438fc0

Please sign in to comment.