Skip to content

Instantly share code, notes, and snippets.

@pashu123
Created April 23, 2025 23:35
Show Gist options
  • Save pashu123/00709862ac95c1878eb36a119ecc4c8a to your computer and use it in GitHub Desktop.
Save pashu123/00709862ac95c1878eb36a119ecc4c8a to your computer and use it in GitHub Desktop.
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