Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
Torchaudio
Commits
c1ce24db
Commit
c1ce24db
authored
Aug 25, 2023
by
flyingdown
Browse files
enable function cuda_version/is_ffmpeg_available/is_kaldi_available/is_sox_available
parent
8bfbf473
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
torchaudio/csrc/utils.cpp
torchaudio/csrc/utils.cpp
+4
-4
No files found.
torchaudio/csrc/utils.cpp
View file @
c1ce24db
...
...
@@ -45,10 +45,10 @@ c10::optional<int64_t> cuda_version() {
}
// namespace
TORCH_LIBRARY_FRAGMENT
(
torchaudio
,
m
)
{
m
.
def
(
"
torchaudio::
is_sox_available"
,
&
is_sox_available
);
m
.
def
(
"
torchaudio::
is_kaldi_available"
,
&
is_kaldi_available
);
m
.
def
(
"
torchaudio::
is_ffmpeg_available"
,
&
is_ffmpeg_available
);
m
.
def
(
"
torchaudio::
cuda_version"
,
&
cuda_version
);
m
.
def
(
"is_sox_available"
,
&
is_sox_available
);
m
.
def
(
"is_kaldi_available"
,
&
is_kaldi_available
);
m
.
def
(
"is_ffmpeg_available"
,
&
is_ffmpeg_available
);
m
.
def
(
"cuda_version"
,
&
cuda_version
);
}
}
// namespace torchaudio
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment