drbh commited on
Commit ·
916419b
1
Parent(s): dff20e5
feat: improve tests and bump build
Browse filesThis view is limited to 50 files because it contains too many changes. See raw diff
- build.toml +11 -9
- build/torch24-cxx11-cu118-x86_64-linux/mel_spectrogram/_ops.py +0 -3
- build/torch24-cxx11-cu121-x86_64-linux/mel_spectrogram/_ops.py +0 -3
- build/torch24-cxx11-cu124-x86_64-linux/mel_spectrogram/_ops.py +0 -3
- build/torch24-cxx98-cu118-x86_64-linux/mel_spectrogram/_ops.py +0 -3
- build/torch24-cxx98-cu121-x86_64-linux/mel_spectrogram/_mel_spectrogram_0_0_1.abi3.so +0 -3
- build/torch24-cxx98-cu121-x86_64-linux/mel_spectrogram/_ops.py +0 -3
- build/torch24-cxx98-cu124-x86_64-linux/mel_spectrogram/_mel_spectrogram_0_0_1.abi3.so +0 -3
- build/torch24-cxx98-cu124-x86_64-linux/mel_spectrogram/_ops.py +0 -3
- build/torch25-cxx11-cu118-x86_64-linux/mel_spectrogram/_mel_spectrogram_0_0_1.abi3.so +0 -3
- build/{torch24-cxx11-cu118-x86_64-linux/mel_spectrogram/_mel_spectrogram_0_0_1.abi3.so → torch25-cxx11-cu118-x86_64-linux/mel_spectrogram/_mel_spectrogram_dff20e5_dirty.abi3.so} +2 -2
- build/torch25-cxx11-cu118-x86_64-linux/mel_spectrogram/_ops.py +8 -2
- build/torch25-cxx11-cu121-x86_64-linux/mel_spectrogram/_mel_spectrogram_0_0_1.abi3.so +0 -3
- build/{torch24-cxx11-cu124-x86_64-linux/mel_spectrogram/_mel_spectrogram_0_0_1.abi3.so → torch25-cxx11-cu121-x86_64-linux/mel_spectrogram/_mel_spectrogram_dff20e5_dirty.abi3.so} +2 -2
- build/torch25-cxx11-cu121-x86_64-linux/mel_spectrogram/_ops.py +8 -2
- build/torch25-cxx11-cu124-x86_64-linux/mel_spectrogram/_mel_spectrogram_0_0_1.abi3.so +0 -3
- build/{torch24-cxx11-cu121-x86_64-linux/mel_spectrogram/_mel_spectrogram_0_0_1.abi3.so → torch25-cxx11-cu124-x86_64-linux/mel_spectrogram/_mel_spectrogram_dff20e5_dirty.abi3.so} +2 -2
- build/torch25-cxx11-cu124-x86_64-linux/mel_spectrogram/_ops.py +8 -2
- build/torch25-cxx98-cu118-x86_64-linux/mel_spectrogram/_mel_spectrogram_0_0_1.abi3.so +0 -3
- build/{torch24-cxx98-cu118-x86_64-linux/mel_spectrogram/_mel_spectrogram_0_0_1.abi3.so → torch25-cxx98-cu118-x86_64-linux/mel_spectrogram/_mel_spectrogram_dff20e5_dirty.abi3.so} +2 -2
- build/torch25-cxx98-cu118-x86_64-linux/mel_spectrogram/_ops.py +8 -2
- build/torch25-cxx98-cu121-x86_64-linux/mel_spectrogram/_mel_spectrogram_0_0_1.abi3.so +0 -3
- build/torch25-cxx98-cu121-x86_64-linux/mel_spectrogram/_mel_spectrogram_dff20e5_dirty.abi3.so +3 -0
- build/torch25-cxx98-cu121-x86_64-linux/mel_spectrogram/_ops.py +8 -2
- build/torch25-cxx98-cu124-x86_64-linux/mel_spectrogram/_mel_spectrogram_0_0_1.abi3.so +0 -3
- build/torch25-cxx98-cu124-x86_64-linux/mel_spectrogram/_mel_spectrogram_dff20e5_dirty.abi3.so +3 -0
- build/torch25-cxx98-cu124-x86_64-linux/mel_spectrogram/_ops.py +8 -2
- build/{torch24-cxx11-cu118-x86_64-linux → torch26-cxx11-cu118-x86_64-linux}/mel_spectrogram/__init__.py +0 -0
- build/torch26-cxx11-cu118-x86_64-linux/mel_spectrogram/_mel_spectrogram_dff20e5_dirty.abi3.so +3 -0
- build/torch26-cxx11-cu118-x86_64-linux/mel_spectrogram/_ops.py +9 -0
- build/{torch24-cxx11-cu121-x86_64-linux → torch26-cxx11-cu124-x86_64-linux}/mel_spectrogram/__init__.py +0 -0
- build/torch26-cxx11-cu124-x86_64-linux/mel_spectrogram/_mel_spectrogram_dff20e5_dirty.abi3.so +3 -0
- build/torch26-cxx11-cu124-x86_64-linux/mel_spectrogram/_ops.py +9 -0
- build/{torch24-cxx11-cu124-x86_64-linux → torch26-cxx11-cu126-x86_64-linux}/mel_spectrogram/__init__.py +0 -0
- build/torch26-cxx11-cu126-x86_64-linux/mel_spectrogram/_mel_spectrogram_dff20e5_dirty.abi3.so +3 -0
- build/torch26-cxx11-cu126-x86_64-linux/mel_spectrogram/_ops.py +9 -0
- build/{torch24-cxx98-cu118-x86_64-linux → torch26-cxx98-cu118-x86_64-linux}/mel_spectrogram/__init__.py +0 -0
- build/torch26-cxx98-cu118-x86_64-linux/mel_spectrogram/_mel_spectrogram_dff20e5_dirty.abi3.so +3 -0
- build/torch26-cxx98-cu118-x86_64-linux/mel_spectrogram/_ops.py +9 -0
- build/{torch24-cxx98-cu121-x86_64-linux → torch26-cxx98-cu124-x86_64-linux}/mel_spectrogram/__init__.py +0 -0
- build/torch26-cxx98-cu124-x86_64-linux/mel_spectrogram/_mel_spectrogram_dff20e5_dirty.abi3.so +3 -0
- build/torch26-cxx98-cu124-x86_64-linux/mel_spectrogram/_ops.py +9 -0
- build/{torch24-cxx98-cu124-x86_64-linux → torch26-cxx98-cu126-x86_64-linux}/mel_spectrogram/__init__.py +0 -0
- build/torch26-cxx98-cu126-x86_64-linux/mel_spectrogram/_mel_spectrogram_dff20e5_dirty.abi3.so +3 -0
- build/torch26-cxx98-cu126-x86_64-linux/mel_spectrogram/_ops.py +9 -0
- ext-torch/torch_binding.h +0 -10
- flake.lock +117 -0
- flake.nix +1 -1
- mel_spectrogram/mel_spectrogram.cu +3 -3
- tests/__init__.py +0 -0
build.toml
CHANGED
|
@@ -1,16 +1,18 @@
|
|
| 1 |
[general]
|
| 2 |
-
|
| 3 |
|
| 4 |
[torch]
|
| 5 |
-
name = "mel_spectrogram"
|
| 6 |
src = [
|
| 7 |
-
"
|
| 8 |
-
"
|
| 9 |
-
"ext-torch/torch_binding.h",
|
| 10 |
]
|
| 11 |
-
pyroot = "ext-torch"
|
| 12 |
|
| 13 |
[kernel.mel_spectrogram]
|
| 14 |
-
capabilities = [
|
| 15 |
-
|
| 16 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
[general]
|
| 2 |
+
name = "mel_spectrogram"
|
| 3 |
|
| 4 |
[torch]
|
|
|
|
| 5 |
src = [
|
| 6 |
+
"torch-ext/torch_binding.cpp",
|
| 7 |
+
"torch-ext/torch_binding.h"
|
|
|
|
| 8 |
]
|
|
|
|
| 9 |
|
| 10 |
[kernel.mel_spectrogram]
|
| 11 |
+
cuda-capabilities = [
|
| 12 |
+
# "7.0", "7.2", "7.5",
|
| 13 |
+
"8.0", "8.6", "8.7", "8.9", "9.0"
|
| 14 |
+
]
|
| 15 |
+
src = [
|
| 16 |
+
"mel_spectrogram/mel_spectrogram.cu"
|
| 17 |
+
]
|
| 18 |
+
depends = [ "torch" ]
|
build/torch24-cxx11-cu118-x86_64-linux/mel_spectrogram/_ops.py
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
import torch
|
| 2 |
-
from . import _mel_spectrogram_0_0_1
|
| 3 |
-
ops = torch.ops._mel_spectrogram_0_0_1
|
|
|
|
|
|
|
|
|
|
|
|
build/torch24-cxx11-cu121-x86_64-linux/mel_spectrogram/_ops.py
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
import torch
|
| 2 |
-
from . import _mel_spectrogram_0_0_1
|
| 3 |
-
ops = torch.ops._mel_spectrogram_0_0_1
|
|
|
|
|
|
|
|
|
|
|
|
build/torch24-cxx11-cu124-x86_64-linux/mel_spectrogram/_ops.py
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
import torch
|
| 2 |
-
from . import _mel_spectrogram_0_0_1
|
| 3 |
-
ops = torch.ops._mel_spectrogram_0_0_1
|
|
|
|
|
|
|
|
|
|
|
|
build/torch24-cxx98-cu118-x86_64-linux/mel_spectrogram/_ops.py
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
import torch
|
| 2 |
-
from . import _mel_spectrogram_0_0_1
|
| 3 |
-
ops = torch.ops._mel_spectrogram_0_0_1
|
|
|
|
|
|
|
|
|
|
|
|
build/torch24-cxx98-cu121-x86_64-linux/mel_spectrogram/_mel_spectrogram_0_0_1.abi3.so
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:d53f5e8ce2a7dae51f5481b23a378ec0b71b681705f77b43626fc66980e26751
|
| 3 |
-
size 56640
|
|
|
|
|
|
|
|
|
|
|
|
build/torch24-cxx98-cu121-x86_64-linux/mel_spectrogram/_ops.py
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
import torch
|
| 2 |
-
from . import _mel_spectrogram_0_0_1
|
| 3 |
-
ops = torch.ops._mel_spectrogram_0_0_1
|
|
|
|
|
|
|
|
|
|
|
|
build/torch24-cxx98-cu124-x86_64-linux/mel_spectrogram/_mel_spectrogram_0_0_1.abi3.so
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:891c8c25a5d4ccdd25458f940d83e21665fb8d1936a6990fb169420dc375dea7
|
| 3 |
-
size 52216
|
|
|
|
|
|
|
|
|
|
|
|
build/torch24-cxx98-cu124-x86_64-linux/mel_spectrogram/_ops.py
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
import torch
|
| 2 |
-
from . import _mel_spectrogram_0_0_1
|
| 3 |
-
ops = torch.ops._mel_spectrogram_0_0_1
|
|
|
|
|
|
|
|
|
|
|
|
build/torch25-cxx11-cu118-x86_64-linux/mel_spectrogram/_mel_spectrogram_0_0_1.abi3.so
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:93bc59bb2ba5e7a1bdccf6cf76bf9a902a9fe5db14de1114f343ac3a7e1efc78
|
| 3 |
-
size 56832
|
|
|
|
|
|
|
|
|
|
|
|
build/{torch24-cxx11-cu118-x86_64-linux/mel_spectrogram/_mel_spectrogram_0_0_1.abi3.so → torch25-cxx11-cu118-x86_64-linux/mel_spectrogram/_mel_spectrogram_dff20e5_dirty.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:c9fd70ede706f4c301b0a956581e1eca47fd59ffe151b02bae892acaedff1119
|
| 3 |
+
size 2019488
|
build/torch25-cxx11-cu118-x86_64-linux/mel_spectrogram/_ops.py
CHANGED
|
@@ -1,3 +1,9 @@
|
|
| 1 |
import torch
|
| 2 |
-
from . import
|
| 3 |
-
ops = torch.ops.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
import torch
|
| 2 |
+
from . import _mel_spectrogram_dff20e5_dirty
|
| 3 |
+
ops = torch.ops._mel_spectrogram_dff20e5_dirty
|
| 4 |
+
|
| 5 |
+
def add_op_namespace_prefix(op_name: str):
|
| 6 |
+
"""
|
| 7 |
+
Prefix op by namespace.
|
| 8 |
+
"""
|
| 9 |
+
return f"_mel_spectrogram_dff20e5_dirty::{op_name}"
|
build/torch25-cxx11-cu121-x86_64-linux/mel_spectrogram/_mel_spectrogram_0_0_1.abi3.so
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:93cbaec30c56f75ef21a299cf551fcbc4bc66cd1a9b32560c1fddaf403f093d7
|
| 3 |
-
size 52328
|
|
|
|
|
|
|
|
|
|
|
|
build/{torch24-cxx11-cu124-x86_64-linux/mel_spectrogram/_mel_spectrogram_0_0_1.abi3.so → torch25-cxx11-cu121-x86_64-linux/mel_spectrogram/_mel_spectrogram_dff20e5_dirty.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:8be112fecfd9abc4fd2916d6352e5b5ce1d327d16966faddf7739c5f7a812368
|
| 3 |
+
size 2042320
|
build/torch25-cxx11-cu121-x86_64-linux/mel_spectrogram/_ops.py
CHANGED
|
@@ -1,3 +1,9 @@
|
|
| 1 |
import torch
|
| 2 |
-
from . import
|
| 3 |
-
ops = torch.ops.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
import torch
|
| 2 |
+
from . import _mel_spectrogram_dff20e5_dirty
|
| 3 |
+
ops = torch.ops._mel_spectrogram_dff20e5_dirty
|
| 4 |
+
|
| 5 |
+
def add_op_namespace_prefix(op_name: str):
|
| 6 |
+
"""
|
| 7 |
+
Prefix op by namespace.
|
| 8 |
+
"""
|
| 9 |
+
return f"_mel_spectrogram_dff20e5_dirty::{op_name}"
|
build/torch25-cxx11-cu124-x86_64-linux/mel_spectrogram/_mel_spectrogram_0_0_1.abi3.so
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:bdb6dfbb056ca9f0ab604f4d18558dfec95fa8df6968b40eb3ac40bfda413912
|
| 3 |
-
size 52120
|
|
|
|
|
|
|
|
|
|
|
|
build/{torch24-cxx11-cu121-x86_64-linux/mel_spectrogram/_mel_spectrogram_0_0_1.abi3.so → torch25-cxx11-cu124-x86_64-linux/mel_spectrogram/_mel_spectrogram_dff20e5_dirty.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:88b0a4333c16b4c8e0e307f2cdfa4461e3a2f0a7a00007f81193c5f4bfbdc658
|
| 3 |
+
size 2056320
|
build/torch25-cxx11-cu124-x86_64-linux/mel_spectrogram/_ops.py
CHANGED
|
@@ -1,3 +1,9 @@
|
|
| 1 |
import torch
|
| 2 |
-
from . import
|
| 3 |
-
ops = torch.ops.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
import torch
|
| 2 |
+
from . import _mel_spectrogram_dff20e5_dirty
|
| 3 |
+
ops = torch.ops._mel_spectrogram_dff20e5_dirty
|
| 4 |
+
|
| 5 |
+
def add_op_namespace_prefix(op_name: str):
|
| 6 |
+
"""
|
| 7 |
+
Prefix op by namespace.
|
| 8 |
+
"""
|
| 9 |
+
return f"_mel_spectrogram_dff20e5_dirty::{op_name}"
|
build/torch25-cxx98-cu118-x86_64-linux/mel_spectrogram/_mel_spectrogram_0_0_1.abi3.so
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:e9c16679793bf509d85bbd2f58d63ef7235b07c617fe44189781a2622cca9a7b
|
| 3 |
-
size 57128
|
|
|
|
|
|
|
|
|
|
|
|
build/{torch24-cxx98-cu118-x86_64-linux/mel_spectrogram/_mel_spectrogram_0_0_1.abi3.so → torch25-cxx98-cu118-x86_64-linux/mel_spectrogram/_mel_spectrogram_dff20e5_dirty.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:3675a983b7da77eeaa944185ad5b579687866f38d254c3c0be9207473c4f1733
|
| 3 |
+
size 2012128
|
build/torch25-cxx98-cu118-x86_64-linux/mel_spectrogram/_ops.py
CHANGED
|
@@ -1,3 +1,9 @@
|
|
| 1 |
import torch
|
| 2 |
-
from . import
|
| 3 |
-
ops = torch.ops.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
import torch
|
| 2 |
+
from . import _mel_spectrogram_dff20e5_dirty
|
| 3 |
+
ops = torch.ops._mel_spectrogram_dff20e5_dirty
|
| 4 |
+
|
| 5 |
+
def add_op_namespace_prefix(op_name: str):
|
| 6 |
+
"""
|
| 7 |
+
Prefix op by namespace.
|
| 8 |
+
"""
|
| 9 |
+
return f"_mel_spectrogram_dff20e5_dirty::{op_name}"
|
build/torch25-cxx98-cu121-x86_64-linux/mel_spectrogram/_mel_spectrogram_0_0_1.abi3.so
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:ee2b160940af6bb144e78c37a91b365ad6744a266b68a085a772a6d94dec2ae8
|
| 3 |
-
size 56640
|
|
|
|
|
|
|
|
|
|
|
|
build/torch25-cxx98-cu121-x86_64-linux/mel_spectrogram/_mel_spectrogram_dff20e5_dirty.abi3.so
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b67c2dbe9bdb3a6c8f8eb1bcc7ece574467db1697ee95e273c9addc6a3bc601b
|
| 3 |
+
size 2039192
|
build/torch25-cxx98-cu121-x86_64-linux/mel_spectrogram/_ops.py
CHANGED
|
@@ -1,3 +1,9 @@
|
|
| 1 |
import torch
|
| 2 |
-
from . import
|
| 3 |
-
ops = torch.ops.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
import torch
|
| 2 |
+
from . import _mel_spectrogram_dff20e5_dirty
|
| 3 |
+
ops = torch.ops._mel_spectrogram_dff20e5_dirty
|
| 4 |
+
|
| 5 |
+
def add_op_namespace_prefix(op_name: str):
|
| 6 |
+
"""
|
| 7 |
+
Prefix op by namespace.
|
| 8 |
+
"""
|
| 9 |
+
return f"_mel_spectrogram_dff20e5_dirty::{op_name}"
|
build/torch25-cxx98-cu124-x86_64-linux/mel_spectrogram/_mel_spectrogram_0_0_1.abi3.so
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:e4cfd1fc6fc2210c286dd909951b8554262646aba8382f8a9bbb1e0db4819f44
|
| 3 |
-
size 52216
|
|
|
|
|
|
|
|
|
|
|
|
build/torch25-cxx98-cu124-x86_64-linux/mel_spectrogram/_mel_spectrogram_dff20e5_dirty.abi3.so
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:289311e0fc29f6dfa7561b4d5bd83d7e43330e6d2fc8e3d7242b516a63eb94eb
|
| 3 |
+
size 2053192
|
build/torch25-cxx98-cu124-x86_64-linux/mel_spectrogram/_ops.py
CHANGED
|
@@ -1,3 +1,9 @@
|
|
| 1 |
import torch
|
| 2 |
-
from . import
|
| 3 |
-
ops = torch.ops.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
import torch
|
| 2 |
+
from . import _mel_spectrogram_dff20e5_dirty
|
| 3 |
+
ops = torch.ops._mel_spectrogram_dff20e5_dirty
|
| 4 |
+
|
| 5 |
+
def add_op_namespace_prefix(op_name: str):
|
| 6 |
+
"""
|
| 7 |
+
Prefix op by namespace.
|
| 8 |
+
"""
|
| 9 |
+
return f"_mel_spectrogram_dff20e5_dirty::{op_name}"
|
build/{torch24-cxx11-cu118-x86_64-linux → torch26-cxx11-cu118-x86_64-linux}/mel_spectrogram/__init__.py
RENAMED
|
File without changes
|
build/torch26-cxx11-cu118-x86_64-linux/mel_spectrogram/_mel_spectrogram_dff20e5_dirty.abi3.so
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:0d0ed57bdcc97d6cbdf4b9002e1f6c9939aaa911ef5a69ffaf89682ce473feb7
|
| 3 |
+
size 2019712
|
build/torch26-cxx11-cu118-x86_64-linux/mel_spectrogram/_ops.py
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import torch
|
| 2 |
+
from . import _mel_spectrogram_dff20e5_dirty
|
| 3 |
+
ops = torch.ops._mel_spectrogram_dff20e5_dirty
|
| 4 |
+
|
| 5 |
+
def add_op_namespace_prefix(op_name: str):
|
| 6 |
+
"""
|
| 7 |
+
Prefix op by namespace.
|
| 8 |
+
"""
|
| 9 |
+
return f"_mel_spectrogram_dff20e5_dirty::{op_name}"
|
build/{torch24-cxx11-cu121-x86_64-linux → torch26-cxx11-cu124-x86_64-linux}/mel_spectrogram/__init__.py
RENAMED
|
File without changes
|
build/torch26-cxx11-cu124-x86_64-linux/mel_spectrogram/_mel_spectrogram_dff20e5_dirty.abi3.so
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:804671cc1e390382553d29afbe8daf05a65e4cf8b6785d1585e5d791b91d8c10
|
| 3 |
+
size 2056536
|
build/torch26-cxx11-cu124-x86_64-linux/mel_spectrogram/_ops.py
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import torch
|
| 2 |
+
from . import _mel_spectrogram_dff20e5_dirty
|
| 3 |
+
ops = torch.ops._mel_spectrogram_dff20e5_dirty
|
| 4 |
+
|
| 5 |
+
def add_op_namespace_prefix(op_name: str):
|
| 6 |
+
"""
|
| 7 |
+
Prefix op by namespace.
|
| 8 |
+
"""
|
| 9 |
+
return f"_mel_spectrogram_dff20e5_dirty::{op_name}"
|
build/{torch24-cxx11-cu124-x86_64-linux → torch26-cxx11-cu126-x86_64-linux}/mel_spectrogram/__init__.py
RENAMED
|
File without changes
|
build/torch26-cxx11-cu126-x86_64-linux/mel_spectrogram/_mel_spectrogram_dff20e5_dirty.abi3.so
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:2ff08507c8dac97d4f9dbb817cba14a35a48df9f63a5be1cf4b3c02fd4d6cc44
|
| 3 |
+
size 2061080
|
build/torch26-cxx11-cu126-x86_64-linux/mel_spectrogram/_ops.py
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import torch
|
| 2 |
+
from . import _mel_spectrogram_dff20e5_dirty
|
| 3 |
+
ops = torch.ops._mel_spectrogram_dff20e5_dirty
|
| 4 |
+
|
| 5 |
+
def add_op_namespace_prefix(op_name: str):
|
| 6 |
+
"""
|
| 7 |
+
Prefix op by namespace.
|
| 8 |
+
"""
|
| 9 |
+
return f"_mel_spectrogram_dff20e5_dirty::{op_name}"
|
build/{torch24-cxx98-cu118-x86_64-linux → torch26-cxx98-cu118-x86_64-linux}/mel_spectrogram/__init__.py
RENAMED
|
File without changes
|
build/torch26-cxx98-cu118-x86_64-linux/mel_spectrogram/_mel_spectrogram_dff20e5_dirty.abi3.so
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:0dfe82be4faeafacd152915330f041edec27b426604feca191075b0889850cd8
|
| 3 |
+
size 2012400
|
build/torch26-cxx98-cu118-x86_64-linux/mel_spectrogram/_ops.py
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import torch
|
| 2 |
+
from . import _mel_spectrogram_dff20e5_dirty
|
| 3 |
+
ops = torch.ops._mel_spectrogram_dff20e5_dirty
|
| 4 |
+
|
| 5 |
+
def add_op_namespace_prefix(op_name: str):
|
| 6 |
+
"""
|
| 7 |
+
Prefix op by namespace.
|
| 8 |
+
"""
|
| 9 |
+
return f"_mel_spectrogram_dff20e5_dirty::{op_name}"
|
build/{torch24-cxx98-cu121-x86_64-linux → torch26-cxx98-cu124-x86_64-linux}/mel_spectrogram/__init__.py
RENAMED
|
File without changes
|
build/torch26-cxx98-cu124-x86_64-linux/mel_spectrogram/_mel_spectrogram_dff20e5_dirty.abi3.so
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a455e5d5c93bd47127c9061e9b1084625e0405bee8bd6958abb559998a62bc28
|
| 3 |
+
size 2053408
|
build/torch26-cxx98-cu124-x86_64-linux/mel_spectrogram/_ops.py
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import torch
|
| 2 |
+
from . import _mel_spectrogram_dff20e5_dirty
|
| 3 |
+
ops = torch.ops._mel_spectrogram_dff20e5_dirty
|
| 4 |
+
|
| 5 |
+
def add_op_namespace_prefix(op_name: str):
|
| 6 |
+
"""
|
| 7 |
+
Prefix op by namespace.
|
| 8 |
+
"""
|
| 9 |
+
return f"_mel_spectrogram_dff20e5_dirty::{op_name}"
|
build/{torch24-cxx98-cu124-x86_64-linux → torch26-cxx98-cu126-x86_64-linux}/mel_spectrogram/__init__.py
RENAMED
|
File without changes
|
build/torch26-cxx98-cu126-x86_64-linux/mel_spectrogram/_mel_spectrogram_dff20e5_dirty.abi3.so
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b5a10c07449a64d5d58d1126778d9a620bf74abf227dbb37a1cde9d06236f7cd
|
| 3 |
+
size 2057952
|
build/torch26-cxx98-cu126-x86_64-linux/mel_spectrogram/_ops.py
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import torch
|
| 2 |
+
from . import _mel_spectrogram_dff20e5_dirty
|
| 3 |
+
ops = torch.ops._mel_spectrogram_dff20e5_dirty
|
| 4 |
+
|
| 5 |
+
def add_op_namespace_prefix(op_name: str):
|
| 6 |
+
"""
|
| 7 |
+
Prefix op by namespace.
|
| 8 |
+
"""
|
| 9 |
+
return f"_mel_spectrogram_dff20e5_dirty::{op_name}"
|
ext-torch/torch_binding.h
DELETED
|
@@ -1,10 +0,0 @@
|
|
| 1 |
-
#pragma once
|
| 2 |
-
|
| 3 |
-
#include <torch/torch.h>
|
| 4 |
-
|
| 5 |
-
void mel_spectrogram(
|
| 6 |
-
torch::Tensor &out,
|
| 7 |
-
torch::Tensor const &samples,
|
| 8 |
-
torch::Tensor const &filters,
|
| 9 |
-
int64_t fft_size,
|
| 10 |
-
int64_t fft_step);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
flake.lock
ADDED
|
@@ -0,0 +1,117 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"nodes": {
|
| 3 |
+
"flake-compat": {
|
| 4 |
+
"locked": {
|
| 5 |
+
"lastModified": 1733328505,
|
| 6 |
+
"narHash": "sha256-NeCCThCEP3eCl2l/+27kNNK7QrwZB1IJCrXfrbv5oqU=",
|
| 7 |
+
"owner": "edolstra",
|
| 8 |
+
"repo": "flake-compat",
|
| 9 |
+
"rev": "ff81ac966bb2cae68946d5ed5fc4994f96d0ffec",
|
| 10 |
+
"type": "github"
|
| 11 |
+
},
|
| 12 |
+
"original": {
|
| 13 |
+
"owner": "edolstra",
|
| 14 |
+
"repo": "flake-compat",
|
| 15 |
+
"type": "github"
|
| 16 |
+
}
|
| 17 |
+
},
|
| 18 |
+
"flake-utils": {
|
| 19 |
+
"inputs": {
|
| 20 |
+
"systems": "systems"
|
| 21 |
+
},
|
| 22 |
+
"locked": {
|
| 23 |
+
"lastModified": 1731533236,
|
| 24 |
+
"narHash": "sha256-l0KFg5HjrsfsO/JpG+r7fRrqm12kzFHyUHqHCVpMMbI=",
|
| 25 |
+
"owner": "numtide",
|
| 26 |
+
"repo": "flake-utils",
|
| 27 |
+
"rev": "11707dc2f618dd54ca8739b309ec4fc024de578b",
|
| 28 |
+
"type": "github"
|
| 29 |
+
},
|
| 30 |
+
"original": {
|
| 31 |
+
"owner": "numtide",
|
| 32 |
+
"repo": "flake-utils",
|
| 33 |
+
"type": "github"
|
| 34 |
+
}
|
| 35 |
+
},
|
| 36 |
+
"kernel-builder": {
|
| 37 |
+
"inputs": {
|
| 38 |
+
"flake-compat": "flake-compat",
|
| 39 |
+
"flake-utils": "flake-utils",
|
| 40 |
+
"nixpkgs": "nixpkgs",
|
| 41 |
+
"rocm-nix": "rocm-nix"
|
| 42 |
+
},
|
| 43 |
+
"locked": {
|
| 44 |
+
"lastModified": 1743422493,
|
| 45 |
+
"narHash": "sha256-3RBEo/vw1p1CMGHsZEyP9Z9gRmJN+USoDMCSVlxHGXg=",
|
| 46 |
+
"owner": "huggingface",
|
| 47 |
+
"repo": "kernel-builder",
|
| 48 |
+
"rev": "2170048e94663eb8012e62a84b0ba9c1a637e2b3",
|
| 49 |
+
"type": "github"
|
| 50 |
+
},
|
| 51 |
+
"original": {
|
| 52 |
+
"owner": "huggingface",
|
| 53 |
+
"repo": "kernel-builder",
|
| 54 |
+
"type": "github"
|
| 55 |
+
}
|
| 56 |
+
},
|
| 57 |
+
"nixpkgs": {
|
| 58 |
+
"locked": {
|
| 59 |
+
"lastModified": 1740557110,
|
| 60 |
+
"narHash": "sha256-D2waFyJkaepTchTrGVAIfCd/YP+37bgXWg9cXwuxuT0=",
|
| 61 |
+
"owner": "nixos",
|
| 62 |
+
"repo": "nixpkgs",
|
| 63 |
+
"rev": "b89a821293c3872992137114d0db9a791243a41b",
|
| 64 |
+
"type": "github"
|
| 65 |
+
},
|
| 66 |
+
"original": {
|
| 67 |
+
"owner": "nixos",
|
| 68 |
+
"ref": "nixos-unstable-small",
|
| 69 |
+
"repo": "nixpkgs",
|
| 70 |
+
"type": "github"
|
| 71 |
+
}
|
| 72 |
+
},
|
| 73 |
+
"rocm-nix": {
|
| 74 |
+
"inputs": {
|
| 75 |
+
"nixpkgs": [
|
| 76 |
+
"kernel-builder",
|
| 77 |
+
"nixpkgs"
|
| 78 |
+
]
|
| 79 |
+
},
|
| 80 |
+
"locked": {
|
| 81 |
+
"lastModified": 1743085847,
|
| 82 |
+
"narHash": "sha256-uWG29p+nhZmGRV1LffWwRGjwtPIXeu1F0YTQbXgB+GU=",
|
| 83 |
+
"owner": "huggingface",
|
| 84 |
+
"repo": "rocm-nix",
|
| 85 |
+
"rev": "245cdc9bfb4bfafa818711c5f5e0b889afe1ba39",
|
| 86 |
+
"type": "github"
|
| 87 |
+
},
|
| 88 |
+
"original": {
|
| 89 |
+
"owner": "huggingface",
|
| 90 |
+
"repo": "rocm-nix",
|
| 91 |
+
"type": "github"
|
| 92 |
+
}
|
| 93 |
+
},
|
| 94 |
+
"root": {
|
| 95 |
+
"inputs": {
|
| 96 |
+
"kernel-builder": "kernel-builder"
|
| 97 |
+
}
|
| 98 |
+
},
|
| 99 |
+
"systems": {
|
| 100 |
+
"locked": {
|
| 101 |
+
"lastModified": 1681028828,
|
| 102 |
+
"narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
|
| 103 |
+
"owner": "nix-systems",
|
| 104 |
+
"repo": "default",
|
| 105 |
+
"rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",
|
| 106 |
+
"type": "github"
|
| 107 |
+
},
|
| 108 |
+
"original": {
|
| 109 |
+
"owner": "nix-systems",
|
| 110 |
+
"repo": "default",
|
| 111 |
+
"type": "github"
|
| 112 |
+
}
|
| 113 |
+
}
|
| 114 |
+
},
|
| 115 |
+
"root": "root",
|
| 116 |
+
"version": 7
|
| 117 |
+
}
|
flake.nix
CHANGED
|
@@ -2,7 +2,7 @@
|
|
| 2 |
description = "Flake for mel_spectogram";
|
| 3 |
|
| 4 |
inputs = {
|
| 5 |
-
kernel-builder.url = "
|
| 6 |
};
|
| 7 |
|
| 8 |
outputs =
|
|
|
|
| 2 |
description = "Flake for mel_spectogram";
|
| 3 |
|
| 4 |
inputs = {
|
| 5 |
+
kernel-builder.url = "github:huggingface/kernel-builder";
|
| 6 |
};
|
| 7 |
|
| 8 |
outputs =
|
mel_spectrogram/mel_spectrogram.cu
CHANGED
|
@@ -100,9 +100,9 @@ __global__ void normalize_mel_spec_kernel(
|
|
| 100 |
}
|
| 101 |
|
| 102 |
void mel_spectrogram(
|
| 103 |
-
torch::Tensor &out, // [n_mel, n_frames]
|
| 104 |
-
torch::Tensor
|
| 105 |
-
torch::Tensor
|
| 106 |
const int64_t fft_size,
|
| 107 |
const int64_t fft_step) {
|
| 108 |
|
|
|
|
| 100 |
}
|
| 101 |
|
| 102 |
void mel_spectrogram(
|
| 103 |
+
const torch::Tensor &out, // [n_mel, n_frames]
|
| 104 |
+
const torch::Tensor &samples, // [n_samples]
|
| 105 |
+
const torch::Tensor &filters, // [n_mel, n_fft]
|
| 106 |
const int64_t fft_size,
|
| 107 |
const int64_t fft_step) {
|
| 108 |
|
tests/__init__.py
ADDED
|
File without changes
|