Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Ambuj Mehrish
sidekit
Commits
7f2f8238
Commit
7f2f8238
authored
Nov 05, 2020
by
Anthony Larcher
Browse files
add convtranspose1D
parent
a8d9f3ed
Changes
1
Hide whitespace changes
Inline
Side-by-side
nnet/xvector.py
View file @
7f2f8238
...
...
@@ -440,6 +440,11 @@ class Xtractor(torch.nn.Module):
dilation
=
cfg
[
"segmental"
][
k
][
"dilation"
])))
input_size
=
cfg
[
"segmental"
][
k
][
"output_channels"
]
elif
k
.
startswith
(
"ctrans"
):
segmental_layers
.
append
((
k
,
torch
.
nn
.
ConvTranspose1d
(
input_size
,
cfg
[
"segmental"
][
k
][
"output_channels"
],
kernel_size
=
cfg
[
"segmental"
][
k
][
"kernel_size"
],
dilation
=
cfg
[
"segmental"
][
k
][
"dilation"
])))
elif
k
.
startswith
(
"activation"
):
segmental_layers
.
append
((
k
,
self
.
activation
))
...
...
Write
Preview
Supports
Markdown
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