Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
davedx
on May 16, 2025
|
parent
|
context
|
favorite
| on:
I don't like NumPy
> This is indeed twice as fast as the vectorized implementation, but, disappointingly, the naive implementation with loops is even faster.
On CPU or GPU?
kccqzy
on May 16, 2025
[–]
This is NumPy we are discussing. It doesn't use the GPU.
threeducks
on May 17, 2025
|
parent
[–]
To be fair, you could replace `import numpy as np` with `import cupy as np` and it would run on GPU without further changes. It is not any good though. PyTorch is roughly 12 times faster.
Consider applying for YC's Fall 2026 batch!
Applications
are open till July 27.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
On CPU or GPU?