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
32fb83b3
"...text-generation-inference.git" did not exist on "db68bd05249559a8d2717a0df36b387ddd532c73"
Commit
32fb83b3
authored
Jul 08, 2017
by
Davis King
Browse files
Fixed name lookup problem for calls to serialize() on network objects.
parent
a6602c37
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
+9
-0
dlib/dnn/core.h
dlib/dnn/core.h
+9
-0
No files found.
dlib/dnn/core.h
View file @
32fb83b3
...
@@ -597,6 +597,10 @@ namespace dlib
...
@@ -597,6 +597,10 @@ namespace dlib
template
<
typename
LAYER_DETAILS
,
typename
SUBNET
,
typename
enabled
=
void
>
template
<
typename
LAYER_DETAILS
,
typename
SUBNET
,
typename
enabled
=
void
>
class
add_layer
;
class
add_layer
;
template
<
typename
LAYER_DETAILS
,
typename
SUBNET
,
typename
enabled
>
void
serialize
(
const
add_layer
<
LAYER_DETAILS
,
SUBNET
,
enabled
>&
item
,
std
::
ostream
&
out
);
template
<
typename
LAYER_DETAILS
,
typename
SUBNET
,
typename
enabled
>
void
deserialize
(
add_layer
<
LAYER_DETAILS
,
SUBNET
,
enabled
>&
item
,
std
::
istream
&
in
);
template
<
typename
T
,
typename
U
>
template
<
typename
T
,
typename
U
>
struct
is_nonloss_layer_type
<
add_layer
<
T
,
U
>>
:
std
::
true_type
{};
struct
is_nonloss_layer_type
<
add_layer
<
T
,
U
>>
:
std
::
true_type
{};
...
@@ -2154,6 +2158,11 @@ namespace dlib
...
@@ -2154,6 +2158,11 @@ namespace dlib
template
<
typename
net_type
,
typename
solver_type
>
friend
class
dnn_trainer
;
template
<
typename
net_type
,
typename
solver_type
>
friend
class
dnn_trainer
;
};
};
template
<
typename
LOSS_DETAILS
,
typename
SUBNET
>
void
serialize
(
const
add_loss_layer
<
LOSS_DETAILS
,
SUBNET
>&
item
,
std
::
ostream
&
out
);
template
<
typename
LOSS_DETAILS
,
typename
SUBNET
>
void
deserialize
(
add_loss_layer
<
LOSS_DETAILS
,
SUBNET
>&
item
,
std
::
istream
&
in
);
// ----------------------------------------------------------------------------------------
// ----------------------------------------------------------------------------------------
template
<
typename
LOSS_DETAILS
,
typename
SUBNET
>
template
<
typename
LOSS_DETAILS
,
typename
SUBNET
>
...
...
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