Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Yoann HOUPERT
kaldi_2015
Commits
fd619d7a
Commit
fd619d7a
authored
Aug 15, 2015
by
Xingyu Na
Browse files
convolution->convolutional1d
parent
7e09c660
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
src/nnet2/nnet-component.cc
src/nnet2/nnet-component.cc
+5
-5
No files found.
src/nnet2/nnet-component.cc
View file @
fd619d7a
...
...
@@ -3927,9 +3927,9 @@ void Convolutional1dComponent::Add(BaseFloat alpha, const UpdatableComponent &ot
of lists, The list at (backward_indexes[i]) is a list
of all indexes j such that forward_indexes[j] = i.
*/
void
ConvolutionComponent
::
ReverseIndexes
(
const
std
::
vector
<
int32
>
&
forward_indexes
,
int32
input_dim
,
std
::
vector
<
std
::
vector
<
int32
>
>
*
backward_indexes
)
{
void
Convolution
al1d
Component
::
ReverseIndexes
(
const
std
::
vector
<
int32
>
&
forward_indexes
,
int32
input_dim
,
std
::
vector
<
std
::
vector
<
int32
>
>
*
backward_indexes
)
{
int32
i
;
backward_indexes
->
resize
(
input_dim
);
for
(
int32
j
=
0
;
j
<
forward_indexes
.
size
();
j
++
)
{
...
...
@@ -3950,8 +3950,8 @@ void ConvolutionComponent::ReverseIndexes(const std::vector<int32> &forward_inde
out[k][j] = i. The output vectors are padded with -1
where necessary if not all the input lists have the same side.
*/
void
ConvolutionComponent
::
RearrangeIndexes
(
const
std
::
vector
<
std
::
vector
<
int32
>
>
&
in
,
std
::
vector
<
std
::
vector
<
int32
>
>
*
out
)
{
void
Convolution
al1d
Component
::
RearrangeIndexes
(
const
std
::
vector
<
std
::
vector
<
int32
>
>
&
in
,
std
::
vector
<
std
::
vector
<
int32
>
>
*
out
)
{
int32
D
=
in
.
size
();
int32
L
=
0
;
for
(
int32
i
=
0
;
i
<
D
;
i
++
)
...
...
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