Skip to content

Nondeterministic in HoVerNet #5609

@KumoLiu

Description

@KumoLiu

In the current HoVerNet implementation of MONAI, it uses UpSample with NONTRAINABLE mode which used torch.nn.functional.interpolate() may cause nondeterministic.

self.upsample = UpSample(
2, scale_factor=2, mode=UpsampleMode.NONTRAINABLE, interp_mode=InterpolateMode.BILINEAR, bias=False
)

https://pytorch.org/docs/stable/generated/torch.use_deterministic_algorithms.html#torch.use_deterministic_algorithms

Describe the solution you'd like
It may need to be explained in the docstring.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions