Skip to content

API change for DLPack conversion #70

@adamimos

Description

@adamimos

I have been getting the following error:

packages/simplexity/generative_processes/torch_generator.py:32: UserWarning: DLPack conversion failed (jax.dlpack.to_dlpack was deprecated in JAX v0.6.0 and removed in JAX v0.7.0. Please use the newer DLPack API based on __dlpack__ and __dlpack_device__ instead. Typically, you can pass a JAX array directly to the `from_dlpack` function of another framework without using `to_dlpack`.), falling back to numpy. This may cause GPU-to-CPU transfer.
  return gen_states, jax_to_torch(inputs), jax_to_torch(labels)

This should be an easy API change

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions