Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
OpenDAS
diffusers
Commits
af400040
Unverified
Commit
af400040
authored
Jul 23, 2024
by
Sayak Paul
Committed by
GitHub
Jul 22, 2024
Browse files
[Tests] proper skipping of request caching test (#8908)
proper skipping of request caching test
parent
5802c2e3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
4 deletions
+1
-4
tests/models/test_modeling_common.py
tests/models/test_modeling_common.py
+1
-4
No files found.
tests/models/test_modeling_common.py
View file @
af400040
...
@@ -124,11 +124,8 @@ class ModelUtilsTest(unittest.TestCase):
...
@@ -124,11 +124,8 @@ class ModelUtilsTest(unittest.TestCase):
if
p1
.
data
.
ne
(
p2
.
data
).
sum
()
>
0
:
if
p1
.
data
.
ne
(
p2
.
data
).
sum
()
>
0
:
assert
False
,
"Parameters not the same!"
assert
False
,
"Parameters not the same!"
@
unittest
.
skipIf
(
torch_device
==
"mps"
,
reason
=
"Test not supported for MPS."
)
def
test_one_request_upon_cached
(
self
):
def
test_one_request_upon_cached
(
self
):
# TODO: For some reason this test fails on MPS where no HEAD call is made.
if
torch_device
==
"mps"
:
return
use_safetensors
=
False
use_safetensors
=
False
with
tempfile
.
TemporaryDirectory
()
as
tmpdirname
:
with
tempfile
.
TemporaryDirectory
()
as
tmpdirname
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment