tutorials icon indicating copy to clipboard operation
tutorials copied to clipboard

drop the check of `monai.utils.get_torch_version_tuple() >= (1, 6)`

Open wyli opened this issue 2 years ago • 2 comments

Describe the bug because the core codebase now requires at least torch 1.6

wyli avatar Jan 18 '22 12:01 wyli

As in lines like amp=True if monai.utils.get_torch_version_tuple() >= (1, 6) else False where we choosing to use AMP only if available? If Pytorch 1.6 is assumed to always be used then yes we should. So far these are the only places get_torch_version_tuple is used.

ericspod avatar Jan 18 '22 16:01 ericspod

Yes, it's mainly for the amp flag.

wyli avatar Jan 19 '22 07:01 wyli

I've removed the checks and created a PR for it.

Shadow-Devil avatar Nov 28 '22 19:11 Shadow-Devil