"...sampling/git@developer.sourcefind.cn:OpenDAS/dgl.git" did not exist on "9bb36f1a27ef3332a5ae63abc223e54e854f8804"
Unverified Commit 60438389 authored by Pedro Cuenca's avatar Pedro Cuenca Committed by GitHub
Browse files

Fix OOM when using PyTorch with JAX installed. (#1795)

Don't initialize Jax on startup.
parent 4125756e
...@@ -208,7 +208,7 @@ class FlaxDDPMScheduler(FlaxSchedulerMixin, ConfigMixin): ...@@ -208,7 +208,7 @@ class FlaxDDPMScheduler(FlaxSchedulerMixin, ConfigMixin):
model_output: jnp.ndarray, model_output: jnp.ndarray,
timestep: int, timestep: int,
sample: jnp.ndarray, sample: jnp.ndarray,
key: jax.random.KeyArray = jax.random.PRNGKey(0), key: jax.random.KeyArray,
return_dict: bool = True, return_dict: bool = True,
) -> Union[FlaxDDPMSchedulerOutput, Tuple]: ) -> Union[FlaxDDPMSchedulerOutput, Tuple]:
""" """
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment