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
3222a3af
Commit
3222a3af
authored
Dec 08, 2015
by
Davis King
Browse files
Clarified spec
parent
5f8e41a8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
6 deletions
+5
-6
dlib/dnn/layers_abstract.h
dlib/dnn/layers_abstract.h
+5
-6
No files found.
dlib/dnn/layers_abstract.h
View file @
3222a3af
...
@@ -192,10 +192,10 @@ namespace dlib
...
@@ -192,10 +192,10 @@ namespace dlib
requires
requires
- SUBNET implements the SUBNET interface defined at the top of this file.
- SUBNET implements the SUBNET interface defined at the top of this file.
- setup() has been called.
- setup() has been called.
- computed_output is the tensor resulting from calling forward(sub,computed_output).
- computed_output is the tensor resulting from calling forward(sub,computed_output).
Moreover, this was the most recent call to forward(). This means that
Moreover, this was the most recent call to forward(). This means that
back
ward() is allowed to cache intermediate results
computed during
for
ward() is allowed to cache intermediate results
so they can be used
forward() and use them for
the backward computation.
during
the backward computation.
- have_same_dimensions(gradient_input, computed_output)
- have_same_dimensions(gradient_input, computed_output)
- have_same_dimensions(sub.get_gradient_input(), sub.get_output()) == true
- have_same_dimensions(sub.get_gradient_input(), sub.get_output()) == true
- have_same_dimensions(params_grad, get_layer_params()) == true
- have_same_dimensions(params_grad, get_layer_params()) == true
...
@@ -248,9 +248,8 @@ namespace dlib
...
@@ -248,9 +248,8 @@ namespace dlib
requires
requires
- setup() has been called.
- setup() has been called.
- computed_output is the tensor resulting from the most recent call to
- computed_output is the tensor resulting from the most recent call to
forward_inplace(). This means that backward_inplace() is allowed to
forward_inplace(). This means that forward_inplace() is allowed to cache
cache intermediate results computed during forward_inplace() and use them
intermediate results so they can be used during the backward computation.
for the backward computation.
- have_same_dimensions(gradient_input, data_grad) == true
- have_same_dimensions(gradient_input, data_grad) == true
- have_same_dimensions(gradient_input, computed_output) == true
- have_same_dimensions(gradient_input, computed_output) == true
- have_same_dimensions(params_grad, get_layer_params()) == true
- have_same_dimensions(params_grad, get_layer_params()) == true
...
...
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