Fix IS_PYTHON_3_12 bug (#9258)
Co-authored-by: UltralyticsAssistant <web@ultralytics.com>
This commit is contained in:
parent
35233822d8
commit
ebbbdd7e25
3 changed files with 3 additions and 2 deletions
|
|
@ -24,6 +24,7 @@ try:
|
|||
except ImportError:
|
||||
thop = None
|
||||
|
||||
# Version checks (all default to version>=min_version)
|
||||
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")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue