Skip to content

fix(networks): replace Tensor | None with Optional[Tensor] for TorchScript compatibility#8879

Merged
ericspod merged 7 commits into
Project-MONAI:devfrom
AlexanderSanin:fix/torchscript-union-type-annotations
May 31, 2026
Merged

fix(networks): replace Tensor | None with Optional[Tensor] for TorchScript compatibility#8879
ericspod merged 7 commits into
Project-MONAI:devfrom
AlexanderSanin:fix/torchscript-union-type-annotations