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
4a2f0192
Commit
4a2f0192
authored
Oct 18, 2016
by
Davis King
Browse files
Fixed a bug in the repeat layer that caused it to throw exceptions
in some cases.
parent
85d421c3
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
dlib/dnn/core.h
dlib/dnn/core.h
+5
-1
No files found.
dlib/dnn/core.h
View file @
4a2f0192
...
@@ -81,7 +81,6 @@ namespace dlib
...
@@ -81,7 +81,6 @@ namespace dlib
resizable_tensor
&
resizable_tensor
&
)
const
)
const
{
{
DLIB_CASSERT
(
false
,
"This function should never be called"
);
}
}
friend
void
serialize
(
const
repeat_input_layer
&
,
std
::
ostream
&
){}
friend
void
serialize
(
const
repeat_input_layer
&
,
std
::
ostream
&
){}
...
@@ -1681,6 +1680,11 @@ namespace dlib
...
@@ -1681,6 +1680,11 @@ namespace dlib
)
const
)
const
{
{
subnetwork
.
to_tensor
(
ibegin
,
iend
,
data
);
subnetwork
.
to_tensor
(
ibegin
,
iend
,
data
);
// call to_tensor on the networks in details just to populate the
// _sample_expansion_factor values in those networks. Other than that this
// call is a noop.
for
(
auto
&
d
:
details
)
d
.
to_tensor
(
ibegin
,
iend
,
data
);
}
}
template
<
typename
forward_iterator
>
template
<
typename
forward_iterator
>
...
...
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