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
2ad4e176
Commit
2ad4e176
authored
Mar 07, 2019
by
Anthony Larcher
Browse files
add activation at the end
parent
fa14d338
Changes
1
Hide whitespace changes
Inline
Side-by-side
nnet/xvector.py
View file @
2ad4e176
...
...
@@ -99,8 +99,8 @@ class Xtractor(torch.nn.Module):
# new layer with batch Normalization
seg_emb_2
=
self
.
norm6
(
self
.
activation
(
self
.
seg_lin1
(
seg_emb_1
)))
# No batch-normalisation after this layer
#
seg_emb_3 = self.activation(self.seg_lin2(seg_emb_2))
seg_emb_3
=
self
.
seg_lin2
(
seg_emb_2
)
seg_emb_3
=
self
.
activation
(
self
.
seg_lin2
(
seg_emb_2
))
#
seg_emb_3 = self.seg_lin2(seg_emb_2)
return
seg_emb_3
def
LossFN
(
self
,
x
,
lable
):
...
...
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