Closed henrique-borba closed 3 months ago
$a = nd::array([2, 2])->gpu(); $b = $a * 2;
The code above throws an exception because the scalar 2 is converted to a CPU NDArray. I need to implement an automatic scalar "promotion" mechanism for the appropriate device
2
The code above throws an exception because the scalar
2
is converted to a CPU NDArray. I need to implement an automatic scalar "promotion" mechanism for the appropriate device