Use np._core instead of np.core (#2637)
Summary:
Deprecated.
```
DeprecationWarning: numpy.core is deprecated and has been renamed to numpy._core. The numpy._core namespace contains private NumPy internals and its use is discouraged, as NumPy internals can change without warning in any release. In practice, most real-world usage of numpy.core is to access functionality in the public NumPy API. If that is the case, use the public NumPy API. If not, you are using NumPy internals. If you would still like to access an internal attribute, use numpy._core.multiarray.
```
Current numpy version used in TorchBench `numpy==2.2.6`
Pull Request resolved: https://github.com/pytorch/benchmark/pull/2637
Reviewed By: mikaylagawarecki
Differential Revision: D81059845
Pulled By: huydhn
fbshipit-source-id: d593fd6944573ed25635b72519a51cb33a6dfdbf