mirror of
https://github.com/huggingface/diffusers.git
synced 2026-01-27 17:22:53 +03:00
Fix OOM when using PyTorch with JAX installed. (#1795)
Don't initialize Jax on startup.
This commit is contained in:
@@ -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]:
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user