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
a2498dc4
"git@developer.sourcefind.cn:renzhc/diffusers_dcu.git" did not exist on "53748217e692792cd1f96c25777e02628b557061"
Unverified
Commit
a2498dc4
authored
Jun 28, 2020
by
stoperro
Committed by
GitHub
Jun 28, 2020
Browse files
Additional documentation for failed dlib::layer<> use. (#2118)
parent
71b303d8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
dlib/dnn/core.h
dlib/dnn/core.h
+3
-0
No files found.
dlib/dnn/core.h
View file @
a2498dc4
...
...
@@ -2684,6 +2684,9 @@ namespace dlib
{
static_assert
(
i
<
T
::
num_layers
,
"Call to layer() attempted to access non-existing layer in neural network."
);
static
T
&
makeT
();
// If you get error here mentioning lack of member "subnet" in "dlib::input<...>",
// then likely your "dlib::layer<...>" invocation wasn't able to find requested layer.
// This could happen for instance when trying to use skip layer for non-existing tag.
using
next_type
=
typename
std
::
remove_reference
<
decltype
(
makeT
().
subnet
())
>::
type
;
using
type
=
typename
layer_helper
<
i
-
1
,
next_type
>::
type
;
static
type
&
layer
(
T
&
n
)
...
...
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