Skip to content

Commit

Permalink
Fix typing of InputData type
Browse files Browse the repository at this point in the history
Co-authored-by: Roland-djee <[email protected]>
  • Loading branch information
debrevitatevitae and RolandMacDoland authored Jul 17, 2024
1 parent d2a917b commit fee4626
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion qadence/ml_tools/printing.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
logger = getLogger(__name__)

PlottingFunction = Callable[[Module, int], tuple[str, Figure]]
InputData = Union[Tensor, dict[str, Tensor]]
InputData = Tensor | dict[str, Tensor]


def print_metrics(loss: float | None, metrics: dict, iteration: int) -> None:
Expand Down

0 comments on commit fee4626

Please sign in to comment.