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
7f6209b4
Unverified
Commit
7f6209b4
authored
Jun 24, 2024
by
Chin-Yun Yu
Committed by
GitHub
Jun 24, 2024
Browse files
fix: use reshape for noncontiguous dy (#3794)
parent
b829e936
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
src/libtorchaudio/lfilter.cpp
src/libtorchaudio/lfilter.cpp
+1
-1
No files found.
src/libtorchaudio/lfilter.cpp
View file @
7f6209b4
...
@@ -168,7 +168,7 @@ class DifferentiableIIR : public torch::autograd::Function<DifferentiableIIR> {
...
@@ -168,7 +168,7 @@ class DifferentiableIIR : public torch::autograd::Function<DifferentiableIIR> {
da
=
F
::
conv1d
(
da
=
F
::
conv1d
(
dyda
.
view
({
1
,
n_batch
*
n_channel
,
-
1
}),
dyda
.
view
({
1
,
n_batch
*
n_channel
,
-
1
}),
dy
.
view
({
n_batch
*
n_channel
,
1
,
-
1
}),
dy
.
reshape
({
n_batch
*
n_channel
,
1
,
-
1
}),
F
::
Conv1dFuncOptions
().
groups
(
n_batch
*
n_channel
))
F
::
Conv1dFuncOptions
().
groups
(
n_batch
*
n_channel
))
.
view
({
n_batch
,
n_channel
,
-
1
})
.
view
({
n_batch
,
n_channel
,
-
1
})
.
sum
(
0
)
.
sum
(
0
)
...
...
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