mohitsha HF Staff commited on
Commit
fdd2270
·
verified ·
1 Parent(s): 7e73085

Upload 3 files

Browse files
.gitattributes CHANGED
@@ -33,3 +33,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
 
 
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
36
+ build/torch27-cxx11-rocm63-x86_64-linux/aiter_aiter_operator/_aiter_aiter_operator_a120ba4f5566b.so filter=lfs diff=lfs merge=lfs -text
build/torch27-cxx11-rocm63-x86_64-linux/aiter_aiter_operator/__init__.py ADDED
@@ -0,0 +1,35 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # This is a Python package for the kernel.
2
+ import torch
3
+ from ._ops import ops
4
+
5
+ def add(input: torch.Tensor, other: torch.Tensor) -> torch.Tensor:
6
+ return ops.add(input, other)
7
+
8
+
9
+ def sub(input: torch.Tensor, other: torch.Tensor) -> torch.Tensor:
10
+ return ops.sub(input, other)
11
+
12
+
13
+ def mul(input: torch.Tensor, other: torch.Tensor) -> torch.Tensor:
14
+ return ops.mul(input, other)
15
+
16
+
17
+ def div(input: torch.Tensor, other: torch.Tensor) -> torch.Tensor:
18
+ return ops.div(input, other)
19
+
20
+
21
+ def add_(input: torch.Tensor, other: torch.Tensor) -> torch.Tensor:
22
+ return ops.add_(input, other)
23
+
24
+
25
+ def sub_(input: torch.Tensor, other: torch.Tensor) -> torch.Tensor:
26
+ return ops.sub_(input, other)
27
+
28
+ __all__ = [
29
+ "add",
30
+ "sub",
31
+ "mul",
32
+ "div",
33
+ "add_",
34
+ "sub_",
35
+ ]
build/torch27-cxx11-rocm63-x86_64-linux/aiter_aiter_operator/_aiter_aiter_operator_a120ba4f5566b.so ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0521ea386bdbedb8879167554b0e147bf97399ba7dd77cadce306f463b708bdc
3
+ size 66692360
build/torch27-cxx11-rocm63-x86_64-linux/aiter_aiter_operator/_ops.py ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ import torch
2
+ from . import _aiter_aiter_operator_a120ba4f5566b
3
+ ops = torch.ops._aiter_aiter_operator_a120ba4f5566b
4
+
5
+ def add_op_namespace_prefix(op_name: str):
6
+ """
7
+ Prefix op by namespace.
8
+ """
9
+ return f"_aiter_aiter_operator_a120ba4f5566b::{op_name}"