Download tests/test_numpy.py from Granis87/MnemoCore: direct link, hf CLI and curl.
- Browser
- Download file 377 Bytes
-
https://huggingface.co/Granis87/MnemoCore/resolve/main/tests/test_numpy.py
- Command line
-
hf download hf://Granis87/MnemoCore/tests/test_numpy.py
-
curl -L -o test_numpy.py https://huggingface.co/Granis87/MnemoCore/resolve/main/tests/test_numpy.py
377 Bytes
| import numpy as np | |
| import sys | |
| print("Python version:", sys.version) | |
| print("Numpy version:", np.__version__) | |
| print("Generating random array...") | |
| try: | |
| arr = np.random.randint(0, 256, size=2048, dtype=np.uint8) | |
| print("Random array generated.") | |
| print("Shape:", arr.shape) | |
| print("First 5 bytes:", arr[:5]) | |
| except Exception as e: | |
| print("Error:", e) | |