Created
April 23, 2025 23:35
-
-
Save pashu123/00709862ac95c1878eb36a119ecc4c8a to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import numpy as np | |
import os | |
# Tensor shapes | |
shapes = { | |
"arg0": (2816, 2), | |
"arg1": (1280, 2816), | |
} | |
# Generate and save tensors | |
for name, shape in shapes.items(): | |
tensor = np.random.uniform(low=0.0, high=1.0, size=shape).astype(np.float16) | |
np.save(f"{name}.npy", tensor) | |
print(f"Saved {name}.npy with shape {shape}") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment