We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7be120c commit 2fccea4Copy full SHA for 2fccea4
pytorch_lightning/trainer/connectors/logger_connector/result.py
@@ -28,8 +28,7 @@
28
from pytorch_lightning.utilities.metrics import metrics_to_scalars
29
30
# re-define the ones from pytorch_lightning.utilities.types without the `Number` type
31
-# TODO(@tchaton): Typing-pickle issue on python<3.7 (https://github.com/cloudpipe/cloudpickle/pull/318)
32
-_METRIC = Any # Union[Metric, torch.Tensor]
+_METRIC = Union[Metric, torch.Tensor]
33
_METRIC_COLLECTION = Union[_METRIC, Mapping[str, _METRIC]]
34
35
0 commit comments