Create README.md
Browse files
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 |
+
```
|