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
bf55c4e8
"tests/git@developer.sourcefind.cn:OpenDAS/dgl.git" did not exist on "ab50eb9b4e06bbd850630fde71aeb8ee71410ac1"
Commit
bf55c4e8
authored
Jul 31, 2017
by
Davis King
Browse files
Clarified spec
parent
99d5702f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
dlib/dnn/loss_abstract.h
dlib/dnn/loss_abstract.h
+5
-0
No files found.
dlib/dnn/loss_abstract.h
View file @
bf55c4e8
...
@@ -108,6 +108,8 @@ namespace dlib
...
@@ -108,6 +108,8 @@ namespace dlib
- for all valid i:
- for all valid i:
- layer<i>(sub).get_gradient_input() has the same dimensions as
- layer<i>(sub).get_gradient_input() has the same dimensions as
layer<i>(sub).get_output().
layer<i>(sub).get_output().
- layer<i>(sub).get_gradient_input() contains all zeros (i.e.
initially, all input gradients are 0).
- truth == an iterator pointing to the beginning of a range of
- truth == an iterator pointing to the beginning of a range of
input_tensor.num_samples()/sub.sample_expansion_factor() elements. Moreover,
input_tensor.num_samples()/sub.sample_expansion_factor() elements. Moreover,
they must be training_label_type elements.
they must be training_label_type elements.
...
@@ -124,6 +126,9 @@ namespace dlib
...
@@ -124,6 +126,9 @@ namespace dlib
assignments, for all valid i:
assignments, for all valid i:
- layer<i>(sub).get_gradient_input() = the gradient of
- layer<i>(sub).get_gradient_input() = the gradient of
L(input_tensor,truth,sub) with respect to layer<i>(sub).get_output().
L(input_tensor,truth,sub) with respect to layer<i>(sub).get_output().
Note that, since get_gradient_input() is zero initialized, you don't
have to write gradient information to layers that have a zero
loss gradient.
- returns L(input_tensor,truth,sub)
- returns L(input_tensor,truth,sub)
!*/
!*/
};
};
...
...
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