Skip to content

TypeError: The newshape argument to jnp.reshape was removed in JAX v0.4.36. Use shape instead. #109

@FFLLDDS

Description

@FFLLDDS

Hello,

I get the error in the title when trying to dm_pix.affine_transform an image:

key = jax.random.key(0)
image = jax.random.normal(key=key, shape=(3, 32, 32)) 

matrix = jax.numpy.array([
        [1.0, 0.0, 0.0],
        [0.0, 1.0, 0.0],
        [0.0, 0.0, 1.0]
    ])

offset = jax.numpy.array([5, 5, 0]) 

img_t = dm_pix.affine_transform(image=image, matrix=matrix, offset=offset)

I have jax version 0.5.0 and dm_pix version 0.4.3 and installed with pip install dm-pix.

Metadata

Metadata

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