Fix torch.cuda.amp.GradScaler warning (#15978)
Co-authored-by: UltralyticsAssistant <web@ultralytics.com>
This commit is contained in:
parent
5a6db149e4
commit
7c7f456710
2 changed files with 5 additions and 1 deletions
|
|
@ -40,6 +40,7 @@ except ImportError:
|
|||
TORCH_1_9 = check_version(torch.__version__, "1.9.0")
|
||||
TORCH_1_13 = check_version(torch.__version__, "1.13.0")
|
||||
TORCH_2_0 = check_version(torch.__version__, "2.0.0")
|
||||
TORCH_2_4 = check_version(torch.__version__, "2.4.0")
|
||||
TORCHVISION_0_10 = check_version(TORCHVISION_VERSION, "0.10.0")
|
||||
TORCHVISION_0_11 = check_version(TORCHVISION_VERSION, "0.11.0")
|
||||
TORCHVISION_0_13 = check_version(TORCHVISION_VERSION, "0.13.0")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue