Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
renzhc
diffusers_dcu
Commits
a7f07c1e
Unverified
Commit
a7f07c1e
authored
Apr 02, 2025
by
Yao Matrix
Committed by
GitHub
Apr 02, 2025
Browse files
map BACKEND_RESET_MAX_MEMORY_ALLOCATED to reset_peak_memory_stats on XPU (#11191)
Signed-off-by:
YAO Matrix
<
matrix.yao@intel.com
>
parent
df1d7b01
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
src/diffusers/utils/testing_utils.py
src/diffusers/utils/testing_utils.py
+1
-1
No files found.
src/diffusers/utils/testing_utils.py
View file @
a7f07c1e
...
@@ -1161,7 +1161,7 @@ if is_torch_available():
...
@@ -1161,7 +1161,7 @@ if is_torch_available():
}
}
BACKEND_RESET_MAX_MEMORY_ALLOCATED
=
{
BACKEND_RESET_MAX_MEMORY_ALLOCATED
=
{
"cuda"
:
torch
.
cuda
.
reset_max_memory_allocated
,
"cuda"
:
torch
.
cuda
.
reset_max_memory_allocated
,
"xpu"
:
None
,
"xpu"
:
getattr
(
torch
.
xpu
,
"reset_peak_memory_stats"
,
None
)
,
"cpu"
:
None
,
"cpu"
:
None
,
"mps"
:
None
,
"mps"
:
None
,
"default"
:
None
,
"default"
:
None
,
...
...
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