Download torch-ext/torch_binding.cpp from phanerozoic/dpx-decode: direct link, hf CLI and curl.
- Browser
- Download file 721 Bytes
-
https://huggingface.co/kernels/phanerozoic/dpx-decode/resolve/v1/torch-ext/torch_binding.cpp
- Command line
-
hf download hf://phanerozoic/dpx-decode@v1/torch-ext/torch_binding.cpp
-
curl -L -o torch_binding.cpp https://huggingface.co/kernels/phanerozoic/dpx-decode/resolve/v1/torch-ext/torch_binding.cpp
721 Bytes
| TORCH_LIBRARY_EXPAND(TORCH_EXTENSION_NAME, ops) { | |
| ops.def("viterbi(Tensor! path, Tensor! score, Tensor! bp, Tensor emissions, Tensor transitions, Tensor priors) -> ()"); | |
| ops.def("dtw(Tensor! path, Tensor! path_len, Tensor! D, Tensor cost) -> ()"); | |
| ops.def("ctc_forced_align(Tensor! frames, Tensor! score, Tensor log_probs, Tensor targets, int blank) -> ()"); | |
| ops.impl("viterbi", torch::kCUDA, &viterbi); | |
| ops.impl("dtw", torch::kCUDA, &dtw); | |
| ops.impl("ctc_forced_align", torch::kCUDA, &ctc_forced_align); | |
| } | |
| REGISTER_EXTENSION(TORCH_EXTENSION_NAME) | |