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
3a055b55
Unverified
Commit
3a055b55
authored
Feb 23, 2021
by
Francisco Massa
Committed by
GitHub
Feb 23, 2021
Browse files
Fix unitialized variable (#1306)
parent
71486acf
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
torchaudio/csrc/sox/utils.cpp
torchaudio/csrc/sox/utils.cpp
+1
-1
No files found.
torchaudio/csrc/sox/utils.cpp
View file @
3a055b55
...
@@ -169,7 +169,7 @@ torch::Tensor convert_to_tensor(
...
@@ -169,7 +169,7 @@ torch::Tensor convert_to_tensor(
const
bool
normalize
,
const
bool
normalize
,
const
bool
channels_first
)
{
const
bool
channels_first
)
{
torch
::
Tensor
t
;
torch
::
Tensor
t
;
uint64_t
dummy
;
uint64_t
dummy
=
0
;
SOX_SAMPLE_LOCALS
;
SOX_SAMPLE_LOCALS
;
if
(
normalize
||
dtype
==
torch
::
kFloat32
)
{
if
(
normalize
||
dtype
==
torch
::
kFloat32
)
{
t
=
torch
::
empty
(
t
=
torch
::
empty
(
...
...
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