Skip to content

ndarray.round() stopped working without an argument. #15190

@ssjhv

Description

@ssjhv

Description

Numpy round() as a ndarray member function used to work without an argument but it is no longer working.

_ = jnp.zeros(1).round()

Expected to execute without an error, but fails with error message

TypeError: round() missing required argument 'number' (pos 1)

According to Numpy documentation, this should work without an argument.
https://numpy.org/doc/stable/reference/generated/numpy.ndarray.round.html

What jax/jaxlib version are you using?

head

Which accelerator(s) are you using?

cpu

Additional system info

python 3.10, linux

NVIDIA GPU info

No response

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions