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
60438389
Unverified
Commit
60438389
authored
Dec 21, 2022
by
Pedro Cuenca
Committed by
GitHub
Dec 21, 2022
Browse files
Fix OOM when using PyTorch with JAX installed. (#1795)
Don't initialize Jax on startup.
parent
4125756e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
src/diffusers/schedulers/scheduling_ddpm_flax.py
src/diffusers/schedulers/scheduling_ddpm_flax.py
+1
-1
No files found.
src/diffusers/schedulers/scheduling_ddpm_flax.py
View file @
60438389
...
...
@@ -208,7 +208,7 @@ class FlaxDDPMScheduler(FlaxSchedulerMixin, ConfigMixin):
model_output
:
jnp
.
ndarray
,
timestep
:
int
,
sample
:
jnp
.
ndarray
,
key
:
jax
.
random
.
KeyArray
=
jax
.
random
.
PRNGKey
(
0
)
,
key
:
jax
.
random
.
KeyArray
,
return_dict
:
bool
=
True
,
)
->
Union
[
FlaxDDPMSchedulerOutput
,
Tuple
]:
"""
...
...
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