Expectation fixes and added AMD expectations (#38729)
This commit is contained in:
@@ -3775,7 +3775,7 @@ class ModelTesterMixin:
|
||||
if not self.has_attentions:
|
||||
self.skipTest(reason="Model architecture does not support attentions")
|
||||
|
||||
(device_type, major) = get_device_properties()
|
||||
device_type, major, minor = get_device_properties()
|
||||
if device_type == "cuda" and major < 8:
|
||||
self.skipTest(reason="This test requires an NVIDIA GPU with compute capability >= 8.0")
|
||||
elif device_type == "rocm" and major < 9:
|
||||
@@ -3823,7 +3823,7 @@ class ModelTesterMixin:
|
||||
if not self.has_attentions:
|
||||
self.skipTest(reason="Model architecture does not support attentions")
|
||||
|
||||
(device_type, major) = get_device_properties()
|
||||
device_type, major, minor = get_device_properties()
|
||||
if device_type == "cuda" and major < 8:
|
||||
self.skipTest(reason="This test requires an NVIDIA GPU with compute capability >= 8.0")
|
||||
elif device_type == "rocm" and major < 9:
|
||||
|
||||
Reference in New Issue
Block a user