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
dlib
Commits
c9809e06
Unverified
Commit
c9809e06
authored
Aug 29, 2020
by
Adrià Arrufat
Committed by
GitHub
Aug 28, 2020
Browse files
Add missing input/output mappings to mult_prev (#2154)
parent
b401185a
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
0 deletions
+5
-0
dlib/dnn/layers.h
dlib/dnn/layers.h
+3
-0
dlib/dnn/layers_abstract.h
dlib/dnn/layers_abstract.h
+2
-0
No files found.
dlib/dnn/layers.h
View file @
c9809e06
...
@@ -2329,6 +2329,9 @@ namespace dlib
...
@@ -2329,6 +2329,9 @@ namespace dlib
const
tensor
&
get_layer_params
()
const
{
return
params
;
}
const
tensor
&
get_layer_params
()
const
{
return
params
;
}
tensor
&
get_layer_params
()
{
return
params
;
}
tensor
&
get_layer_params
()
{
return
params
;
}
inline
dpoint
map_input_to_output
(
const
dpoint
&
p
)
const
{
return
p
;
}
inline
dpoint
map_output_to_input
(
const
dpoint
&
p
)
const
{
return
p
;
}
friend
void
serialize
(
const
mult_prev_
&
/*item*/
,
std
::
ostream
&
out
)
friend
void
serialize
(
const
mult_prev_
&
/*item*/
,
std
::
ostream
&
out
)
{
{
serialize
(
"mult_prev_"
,
out
);
serialize
(
"mult_prev_"
,
out
);
...
...
dlib/dnn/layers_abstract.h
View file @
c9809e06
...
@@ -2432,6 +2432,8 @@ namespace dlib
...
@@ -2432,6 +2432,8 @@ namespace dlib
template
<
typename
SUBNET
>
void
setup
(
const
SUBNET
&
sub
);
template
<
typename
SUBNET
>
void
setup
(
const
SUBNET
&
sub
);
template
<
typename
SUBNET
>
void
forward
(
const
SUBNET
&
sub
,
resizable_tensor
&
output
);
template
<
typename
SUBNET
>
void
forward
(
const
SUBNET
&
sub
,
resizable_tensor
&
output
);
template
<
typename
SUBNET
>
void
backward
(
const
tensor
&
gradient_input
,
SUBNET
&
sub
,
tensor
&
params_grad
);
template
<
typename
SUBNET
>
void
backward
(
const
tensor
&
gradient_input
,
SUBNET
&
sub
,
tensor
&
params_grad
);
dpoint
map_input_to_output
(
dpoint
p
)
const
;
dpoint
map_output_to_input
(
dpoint
p
)
const
;
const
tensor
&
get_layer_params
()
const
;
const
tensor
&
get_layer_params
()
const
;
tensor
&
get_layer_params
();
tensor
&
get_layer_params
();
/*!
/*!
...
...
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