Kernels:
Trusted publisher
Uploaded using `kernel-builder`.
Browse files- build/torch210-metal-aarch64-darwin/__init__.py +11 -11
- build/torch210-metal-aarch64-darwin/{_activation_metal_c575345.abi3.so → _activation_metal_5c4052d.abi3.so} +2 -2
- build/torch210-metal-aarch64-darwin/_ops.py +3 -3
- build/torch210-metal-aarch64-darwin/metadata.json +1 -1
- build/torch211-metal-aarch64-darwin/__init__.py +11 -11
- build/torch211-metal-aarch64-darwin/{_activation_metal_c575345.abi3.so → _activation_metal_5c4052d.abi3.so} +2 -2
- build/torch211-metal-aarch64-darwin/_ops.py +3 -3
- build/torch211-metal-aarch64-darwin/metadata.json +1 -1
- build/torch212-metal-aarch64-darwin/__init__.py +11 -11
- build/torch212-metal-aarch64-darwin/{_activation_metal_c575345.abi3.so → _activation_metal_5c4052d.abi3.so} +2 -2
- build/torch212-metal-aarch64-darwin/_ops.py +3 -3
- build/torch212-metal-aarch64-darwin/metadata.json +1 -1
build/torch210-metal-aarch64-darwin/__init__.py
CHANGED
|
@@ -5,56 +5,56 @@ from ._ops import ops
|
|
| 5 |
from . import layers
|
| 6 |
|
| 7 |
|
| 8 |
-
def silu_and_mul(out: torch.Tensor, x: torch.Tensor) ->
|
| 9 |
ops.silu_and_mul(out, x)
|
| 10 |
return out
|
| 11 |
|
| 12 |
|
| 13 |
-
def mul_and_silu(out: torch.Tensor, x: torch.Tensor) ->
|
| 14 |
ops.mul_and_silu(out, x)
|
| 15 |
return out
|
| 16 |
|
| 17 |
|
| 18 |
-
def gelu_and_mul(out: torch.Tensor, x: torch.Tensor) ->
|
| 19 |
ops.gelu_and_mul(out, x)
|
| 20 |
return out
|
| 21 |
|
| 22 |
|
| 23 |
-
def gelu_tanh_and_mul(out: torch.Tensor, x: torch.Tensor) ->
|
| 24 |
ops.gelu_tanh_and_mul(out, x)
|
| 25 |
return out
|
| 26 |
|
| 27 |
|
| 28 |
-
def fatrelu_and_mul(out: torch.Tensor, x: torch.Tensor, threshold: float = 0.0) ->
|
| 29 |
ops.fatrelu_and_mul(out, x, threshold)
|
| 30 |
return out
|
| 31 |
|
| 32 |
|
| 33 |
-
def gelu(out: torch.Tensor, x: torch.Tensor) ->
|
| 34 |
ops.gelu(out, x)
|
| 35 |
return out
|
| 36 |
|
| 37 |
-
def silu(out: torch.Tensor, x: torch.Tensor) ->
|
| 38 |
ops.silu(out, x)
|
| 39 |
return out
|
| 40 |
|
| 41 |
|
| 42 |
-
def gelu_tanh(out: torch.Tensor, x: torch.Tensor) ->
|
| 43 |
ops.gelu_tanh(out, x)
|
| 44 |
return out
|
| 45 |
|
| 46 |
|
| 47 |
-
def gelu_fast(out: torch.Tensor, x: torch.Tensor) ->
|
| 48 |
ops.gelu_fast(out, x)
|
| 49 |
return out
|
| 50 |
|
| 51 |
|
| 52 |
-
def gelu_new(out: torch.Tensor, x: torch.Tensor) ->
|
| 53 |
ops.gelu_new(out, x)
|
| 54 |
return out
|
| 55 |
|
| 56 |
|
| 57 |
-
def gelu_quick(out: torch.Tensor, x: torch.Tensor) ->
|
| 58 |
ops.gelu_quick(out, x)
|
| 59 |
return out
|
| 60 |
|
|
|
|
| 5 |
from . import layers
|
| 6 |
|
| 7 |
|
| 8 |
+
def silu_and_mul(out: torch.Tensor, x: torch.Tensor) -> torch.Tensor:
|
| 9 |
ops.silu_and_mul(out, x)
|
| 10 |
return out
|
| 11 |
|
| 12 |
|
| 13 |
+
def mul_and_silu(out: torch.Tensor, x: torch.Tensor) -> torch.Tensor:
|
| 14 |
ops.mul_and_silu(out, x)
|
| 15 |
return out
|
| 16 |
|
| 17 |
|
| 18 |
+
def gelu_and_mul(out: torch.Tensor, x: torch.Tensor) -> torch.Tensor:
|
| 19 |
ops.gelu_and_mul(out, x)
|
| 20 |
return out
|
| 21 |
|
| 22 |
|
| 23 |
+
def gelu_tanh_and_mul(out: torch.Tensor, x: torch.Tensor) -> torch.Tensor:
|
| 24 |
ops.gelu_tanh_and_mul(out, x)
|
| 25 |
return out
|
| 26 |
|
| 27 |
|
| 28 |
+
def fatrelu_and_mul(out: torch.Tensor, x: torch.Tensor, threshold: float = 0.0) -> torch.Tensor:
|
| 29 |
ops.fatrelu_and_mul(out, x, threshold)
|
| 30 |
return out
|
| 31 |
|
| 32 |
|
| 33 |
+
def gelu(out: torch.Tensor, x: torch.Tensor) -> torch.Tensor:
|
| 34 |
ops.gelu(out, x)
|
| 35 |
return out
|
| 36 |
|
| 37 |
+
def silu(out: torch.Tensor, x: torch.Tensor) -> torch.Tensor:
|
| 38 |
ops.silu(out, x)
|
| 39 |
return out
|
| 40 |
|
| 41 |
|
| 42 |
+
def gelu_tanh(out: torch.Tensor, x: torch.Tensor) -> torch.Tensor:
|
| 43 |
ops.gelu_tanh(out, x)
|
| 44 |
return out
|
| 45 |
|
| 46 |
|
| 47 |
+
def gelu_fast(out: torch.Tensor, x: torch.Tensor) -> torch.Tensor:
|
| 48 |
ops.gelu_fast(out, x)
|
| 49 |
return out
|
| 50 |
|
| 51 |
|
| 52 |
+
def gelu_new(out: torch.Tensor, x: torch.Tensor) -> torch.Tensor:
|
| 53 |
ops.gelu_new(out, x)
|
| 54 |
return out
|
| 55 |
|
| 56 |
|
| 57 |
+
def gelu_quick(out: torch.Tensor, x: torch.Tensor) -> torch.Tensor:
|
| 58 |
ops.gelu_quick(out, x)
|
| 59 |
return out
|
| 60 |
|
build/torch210-metal-aarch64-darwin/{_activation_metal_c575345.abi3.so → _activation_metal_5c4052d.abi3.so}
RENAMED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:cd39e72c0187d7e10ec2548b3ef2726d8a2d74f8be3b1b8865bf2c7f135dc303
|
| 3 |
+
size 221520
|
build/torch210-metal-aarch64-darwin/_ops.py
CHANGED
|
@@ -1,9 +1,9 @@
|
|
| 1 |
import torch
|
| 2 |
-
from . import
|
| 3 |
-
ops = torch.ops.
|
| 4 |
|
| 5 |
def add_op_namespace_prefix(op_name: str):
|
| 6 |
"""
|
| 7 |
Prefix op by namespace.
|
| 8 |
"""
|
| 9 |
-
return f"
|
|
|
|
| 1 |
import torch
|
| 2 |
+
from . import _activation_metal_5c4052d
|
| 3 |
+
ops = torch.ops._activation_metal_5c4052d
|
| 4 |
|
| 5 |
def add_op_namespace_prefix(op_name: str):
|
| 6 |
"""
|
| 7 |
Prefix op by namespace.
|
| 8 |
"""
|
| 9 |
+
return f"_activation_metal_5c4052d::{op_name}"
|
build/torch210-metal-aarch64-darwin/metadata.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
| 1 |
{
|
| 2 |
"name": "activation",
|
| 3 |
-
"id": "
|
| 4 |
"version": 1,
|
| 5 |
"license": "Apache-2.0",
|
| 6 |
"python-depends": [],
|
|
|
|
| 1 |
{
|
| 2 |
"name": "activation",
|
| 3 |
+
"id": "_activation_metal_5c4052d",
|
| 4 |
"version": 1,
|
| 5 |
"license": "Apache-2.0",
|
| 6 |
"python-depends": [],
|
build/torch211-metal-aarch64-darwin/__init__.py
CHANGED
|
@@ -5,56 +5,56 @@ from ._ops import ops
|
|
| 5 |
from . import layers
|
| 6 |
|
| 7 |
|
| 8 |
-
def silu_and_mul(out: torch.Tensor, x: torch.Tensor) ->
|
| 9 |
ops.silu_and_mul(out, x)
|
| 10 |
return out
|
| 11 |
|
| 12 |
|
| 13 |
-
def mul_and_silu(out: torch.Tensor, x: torch.Tensor) ->
|
| 14 |
ops.mul_and_silu(out, x)
|
| 15 |
return out
|
| 16 |
|
| 17 |
|
| 18 |
-
def gelu_and_mul(out: torch.Tensor, x: torch.Tensor) ->
|
| 19 |
ops.gelu_and_mul(out, x)
|
| 20 |
return out
|
| 21 |
|
| 22 |
|
| 23 |
-
def gelu_tanh_and_mul(out: torch.Tensor, x: torch.Tensor) ->
|
| 24 |
ops.gelu_tanh_and_mul(out, x)
|
| 25 |
return out
|
| 26 |
|
| 27 |
|
| 28 |
-
def fatrelu_and_mul(out: torch.Tensor, x: torch.Tensor, threshold: float = 0.0) ->
|
| 29 |
ops.fatrelu_and_mul(out, x, threshold)
|
| 30 |
return out
|
| 31 |
|
| 32 |
|
| 33 |
-
def gelu(out: torch.Tensor, x: torch.Tensor) ->
|
| 34 |
ops.gelu(out, x)
|
| 35 |
return out
|
| 36 |
|
| 37 |
-
def silu(out: torch.Tensor, x: torch.Tensor) ->
|
| 38 |
ops.silu(out, x)
|
| 39 |
return out
|
| 40 |
|
| 41 |
|
| 42 |
-
def gelu_tanh(out: torch.Tensor, x: torch.Tensor) ->
|
| 43 |
ops.gelu_tanh(out, x)
|
| 44 |
return out
|
| 45 |
|
| 46 |
|
| 47 |
-
def gelu_fast(out: torch.Tensor, x: torch.Tensor) ->
|
| 48 |
ops.gelu_fast(out, x)
|
| 49 |
return out
|
| 50 |
|
| 51 |
|
| 52 |
-
def gelu_new(out: torch.Tensor, x: torch.Tensor) ->
|
| 53 |
ops.gelu_new(out, x)
|
| 54 |
return out
|
| 55 |
|
| 56 |
|
| 57 |
-
def gelu_quick(out: torch.Tensor, x: torch.Tensor) ->
|
| 58 |
ops.gelu_quick(out, x)
|
| 59 |
return out
|
| 60 |
|
|
|
|
| 5 |
from . import layers
|
| 6 |
|
| 7 |
|
| 8 |
+
def silu_and_mul(out: torch.Tensor, x: torch.Tensor) -> torch.Tensor:
|
| 9 |
ops.silu_and_mul(out, x)
|
| 10 |
return out
|
| 11 |
|
| 12 |
|
| 13 |
+
def mul_and_silu(out: torch.Tensor, x: torch.Tensor) -> torch.Tensor:
|
| 14 |
ops.mul_and_silu(out, x)
|
| 15 |
return out
|
| 16 |
|
| 17 |
|
| 18 |
+
def gelu_and_mul(out: torch.Tensor, x: torch.Tensor) -> torch.Tensor:
|
| 19 |
ops.gelu_and_mul(out, x)
|
| 20 |
return out
|
| 21 |
|
| 22 |
|
| 23 |
+
def gelu_tanh_and_mul(out: torch.Tensor, x: torch.Tensor) -> torch.Tensor:
|
| 24 |
ops.gelu_tanh_and_mul(out, x)
|
| 25 |
return out
|
| 26 |
|
| 27 |
|
| 28 |
+
def fatrelu_and_mul(out: torch.Tensor, x: torch.Tensor, threshold: float = 0.0) -> torch.Tensor:
|
| 29 |
ops.fatrelu_and_mul(out, x, threshold)
|
| 30 |
return out
|
| 31 |
|
| 32 |
|
| 33 |
+
def gelu(out: torch.Tensor, x: torch.Tensor) -> torch.Tensor:
|
| 34 |
ops.gelu(out, x)
|
| 35 |
return out
|
| 36 |
|
| 37 |
+
def silu(out: torch.Tensor, x: torch.Tensor) -> torch.Tensor:
|
| 38 |
ops.silu(out, x)
|
| 39 |
return out
|
| 40 |
|
| 41 |
|
| 42 |
+
def gelu_tanh(out: torch.Tensor, x: torch.Tensor) -> torch.Tensor:
|
| 43 |
ops.gelu_tanh(out, x)
|
| 44 |
return out
|
| 45 |
|
| 46 |
|
| 47 |
+
def gelu_fast(out: torch.Tensor, x: torch.Tensor) -> torch.Tensor:
|
| 48 |
ops.gelu_fast(out, x)
|
| 49 |
return out
|
| 50 |
|
| 51 |
|
| 52 |
+
def gelu_new(out: torch.Tensor, x: torch.Tensor) -> torch.Tensor:
|
| 53 |
ops.gelu_new(out, x)
|
| 54 |
return out
|
| 55 |
|
| 56 |
|
| 57 |
+
def gelu_quick(out: torch.Tensor, x: torch.Tensor) -> torch.Tensor:
|
| 58 |
ops.gelu_quick(out, x)
|
| 59 |
return out
|
| 60 |
|
build/torch211-metal-aarch64-darwin/{_activation_metal_c575345.abi3.so → _activation_metal_5c4052d.abi3.so}
RENAMED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:6853cf4026390770299b1fdb8e21dc1fd402b87cdc6973fbea6ddbb66031fb9c
|
| 3 |
+
size 221520
|
build/torch211-metal-aarch64-darwin/_ops.py
CHANGED
|
@@ -1,9 +1,9 @@
|
|
| 1 |
import torch
|
| 2 |
-
from . import
|
| 3 |
-
ops = torch.ops.
|
| 4 |
|
| 5 |
def add_op_namespace_prefix(op_name: str):
|
| 6 |
"""
|
| 7 |
Prefix op by namespace.
|
| 8 |
"""
|
| 9 |
-
return f"
|
|
|
|
| 1 |
import torch
|
| 2 |
+
from . import _activation_metal_5c4052d
|
| 3 |
+
ops = torch.ops._activation_metal_5c4052d
|
| 4 |
|
| 5 |
def add_op_namespace_prefix(op_name: str):
|
| 6 |
"""
|
| 7 |
Prefix op by namespace.
|
| 8 |
"""
|
| 9 |
+
return f"_activation_metal_5c4052d::{op_name}"
|
build/torch211-metal-aarch64-darwin/metadata.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
| 1 |
{
|
| 2 |
"name": "activation",
|
| 3 |
-
"id": "
|
| 4 |
"version": 1,
|
| 5 |
"license": "Apache-2.0",
|
| 6 |
"python-depends": [],
|
|
|
|
| 1 |
{
|
| 2 |
"name": "activation",
|
| 3 |
+
"id": "_activation_metal_5c4052d",
|
| 4 |
"version": 1,
|
| 5 |
"license": "Apache-2.0",
|
| 6 |
"python-depends": [],
|
build/torch212-metal-aarch64-darwin/__init__.py
CHANGED
|
@@ -5,56 +5,56 @@ from ._ops import ops
|
|
| 5 |
from . import layers
|
| 6 |
|
| 7 |
|
| 8 |
-
def silu_and_mul(out: torch.Tensor, x: torch.Tensor) ->
|
| 9 |
ops.silu_and_mul(out, x)
|
| 10 |
return out
|
| 11 |
|
| 12 |
|
| 13 |
-
def mul_and_silu(out: torch.Tensor, x: torch.Tensor) ->
|
| 14 |
ops.mul_and_silu(out, x)
|
| 15 |
return out
|
| 16 |
|
| 17 |
|
| 18 |
-
def gelu_and_mul(out: torch.Tensor, x: torch.Tensor) ->
|
| 19 |
ops.gelu_and_mul(out, x)
|
| 20 |
return out
|
| 21 |
|
| 22 |
|
| 23 |
-
def gelu_tanh_and_mul(out: torch.Tensor, x: torch.Tensor) ->
|
| 24 |
ops.gelu_tanh_and_mul(out, x)
|
| 25 |
return out
|
| 26 |
|
| 27 |
|
| 28 |
-
def fatrelu_and_mul(out: torch.Tensor, x: torch.Tensor, threshold: float = 0.0) ->
|
| 29 |
ops.fatrelu_and_mul(out, x, threshold)
|
| 30 |
return out
|
| 31 |
|
| 32 |
|
| 33 |
-
def gelu(out: torch.Tensor, x: torch.Tensor) ->
|
| 34 |
ops.gelu(out, x)
|
| 35 |
return out
|
| 36 |
|
| 37 |
-
def silu(out: torch.Tensor, x: torch.Tensor) ->
|
| 38 |
ops.silu(out, x)
|
| 39 |
return out
|
| 40 |
|
| 41 |
|
| 42 |
-
def gelu_tanh(out: torch.Tensor, x: torch.Tensor) ->
|
| 43 |
ops.gelu_tanh(out, x)
|
| 44 |
return out
|
| 45 |
|
| 46 |
|
| 47 |
-
def gelu_fast(out: torch.Tensor, x: torch.Tensor) ->
|
| 48 |
ops.gelu_fast(out, x)
|
| 49 |
return out
|
| 50 |
|
| 51 |
|
| 52 |
-
def gelu_new(out: torch.Tensor, x: torch.Tensor) ->
|
| 53 |
ops.gelu_new(out, x)
|
| 54 |
return out
|
| 55 |
|
| 56 |
|
| 57 |
-
def gelu_quick(out: torch.Tensor, x: torch.Tensor) ->
|
| 58 |
ops.gelu_quick(out, x)
|
| 59 |
return out
|
| 60 |
|
|
|
|
| 5 |
from . import layers
|
| 6 |
|
| 7 |
|
| 8 |
+
def silu_and_mul(out: torch.Tensor, x: torch.Tensor) -> torch.Tensor:
|
| 9 |
ops.silu_and_mul(out, x)
|
| 10 |
return out
|
| 11 |
|
| 12 |
|
| 13 |
+
def mul_and_silu(out: torch.Tensor, x: torch.Tensor) -> torch.Tensor:
|
| 14 |
ops.mul_and_silu(out, x)
|
| 15 |
return out
|
| 16 |
|
| 17 |
|
| 18 |
+
def gelu_and_mul(out: torch.Tensor, x: torch.Tensor) -> torch.Tensor:
|
| 19 |
ops.gelu_and_mul(out, x)
|
| 20 |
return out
|
| 21 |
|
| 22 |
|
| 23 |
+
def gelu_tanh_and_mul(out: torch.Tensor, x: torch.Tensor) -> torch.Tensor:
|
| 24 |
ops.gelu_tanh_and_mul(out, x)
|
| 25 |
return out
|
| 26 |
|
| 27 |
|
| 28 |
+
def fatrelu_and_mul(out: torch.Tensor, x: torch.Tensor, threshold: float = 0.0) -> torch.Tensor:
|
| 29 |
ops.fatrelu_and_mul(out, x, threshold)
|
| 30 |
return out
|
| 31 |
|
| 32 |
|
| 33 |
+
def gelu(out: torch.Tensor, x: torch.Tensor) -> torch.Tensor:
|
| 34 |
ops.gelu(out, x)
|
| 35 |
return out
|
| 36 |
|
| 37 |
+
def silu(out: torch.Tensor, x: torch.Tensor) -> torch.Tensor:
|
| 38 |
ops.silu(out, x)
|
| 39 |
return out
|
| 40 |
|
| 41 |
|
| 42 |
+
def gelu_tanh(out: torch.Tensor, x: torch.Tensor) -> torch.Tensor:
|
| 43 |
ops.gelu_tanh(out, x)
|
| 44 |
return out
|
| 45 |
|
| 46 |
|
| 47 |
+
def gelu_fast(out: torch.Tensor, x: torch.Tensor) -> torch.Tensor:
|
| 48 |
ops.gelu_fast(out, x)
|
| 49 |
return out
|
| 50 |
|
| 51 |
|
| 52 |
+
def gelu_new(out: torch.Tensor, x: torch.Tensor) -> torch.Tensor:
|
| 53 |
ops.gelu_new(out, x)
|
| 54 |
return out
|
| 55 |
|
| 56 |
|
| 57 |
+
def gelu_quick(out: torch.Tensor, x: torch.Tensor) -> torch.Tensor:
|
| 58 |
ops.gelu_quick(out, x)
|
| 59 |
return out
|
| 60 |
|
build/torch212-metal-aarch64-darwin/{_activation_metal_c575345.abi3.so → _activation_metal_5c4052d.abi3.so}
RENAMED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b86b16aed8155e33b8c74f907da43cc5c60282ca8a47a5bf0aab21331e127a12
|
| 3 |
+
size 221552
|
build/torch212-metal-aarch64-darwin/_ops.py
CHANGED
|
@@ -1,9 +1,9 @@
|
|
| 1 |
import torch
|
| 2 |
-
from . import
|
| 3 |
-
ops = torch.ops.
|
| 4 |
|
| 5 |
def add_op_namespace_prefix(op_name: str):
|
| 6 |
"""
|
| 7 |
Prefix op by namespace.
|
| 8 |
"""
|
| 9 |
-
return f"
|
|
|
|
| 1 |
import torch
|
| 2 |
+
from . import _activation_metal_5c4052d
|
| 3 |
+
ops = torch.ops._activation_metal_5c4052d
|
| 4 |
|
| 5 |
def add_op_namespace_prefix(op_name: str):
|
| 6 |
"""
|
| 7 |
Prefix op by namespace.
|
| 8 |
"""
|
| 9 |
+
return f"_activation_metal_5c4052d::{op_name}"
|
build/torch212-metal-aarch64-darwin/metadata.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
| 1 |
{
|
| 2 |
"name": "activation",
|
| 3 |
-
"id": "
|
| 4 |
"version": 1,
|
| 5 |
"license": "Apache-2.0",
|
| 6 |
"python-depends": [],
|
|
|
|
| 1 |
{
|
| 2 |
"name": "activation",
|
| 3 |
+
"id": "_activation_metal_5c4052d",
|
| 4 |
"version": 1,
|
| 5 |
"license": "Apache-2.0",
|
| 6 |
"python-depends": [],
|