-
from #6803
```
from tinygrad import Tensor, TinyJit
@TinyJit
def f(x) -> Tensor: return (x + 1).realize()
a1, a2 = Tensor([1.1]), Tensor([1.2])
print(f"{f(a1).numpy()=}")
print(f"{f(a2).nu…
-
### Bug description
When using `==` `__eq__` or `!=` `__ne__` on numpy arrays from mojo like the following.
```mojo
from python import Python
def main():
var np = Python.import_module(…
-
When I load the `.data` using `io,py`,I encountered this error: ` strands = np.array(strands).reshape((num_strands, -1,3))
ValueError: cannot reshape array of size 10000 into shape (10000,newaxis,3)…
-
I see different behaviors in NumPy and JAX.
In NumPy,
```py
>>> import numpy as np
>>> a=np.ones((4,4), dtype=ml_dtypes.bfloat16)
>>> a@a
array([[4., 4., 4., 4.],
[4., 4., 4., 4.],
…
njzjz updated
2 weeks ago
-
### Describe the problem:
An `OverflowError` was encountered while running the base.py script, where an attempt was made to generate the `indices_multi` NumPy array with type `np.uint8` that includ…
-
### Describe the issue:
### Description
When I define a polynomial with a single very large root (and other small ones), I get a significant difference between the outcomes of the `roots` and `pol…
-
Lovely library! Here's a small bug I stumbled upon.
Room.add_microphone() method accepts arraylike or instance of MicrophoneArray for the first parameter.
When using MicrophoneArray with a defined…
-
-
The numpy 2.0 changed the behavior of the `copy` keyword in `__array__`, and especially making `copy=False` to be strict (raising an error when a zero-copy numpy array is not possible).
We only adju…
-
### Checks
- [X] I have checked that this issue has not already been reported.
- [X] I have confirmed this bug exists on the [latest version](https://pypi.org/project/polars/) of Polars.
### Re…