mohitsha HF Staff commited on
Commit
6b998f6
·
verified ·
1 Parent(s): fdd2270

Create README.md

Browse files
Files changed (1) hide show
  1. README.md +12 -0
README.md ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ```python
2
+ import torch
3
+ from kernels import get_kernel
4
+ # Download optimized kernels from the Hugging Face hub
5
+ ops = get_kernel("mohitsha/aiter_aiter_operator")
6
+ # Random tensor
7
+ x = torch.randn((10, 10), dtype=torch.bfloat16, device="cuda")
8
+ y = torch.randn((10, 10), dtype=torch.bfloat16, device="cuda")
9
+ out = ops.div(y, x)
10
+ print(out)
11
+
12
+ ```