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
7c65c8d2
Commit
7c65c8d2
authored
Nov 18, 2015
by
Davis King
Browse files
removed cruft
parent
7e12a32b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
37 deletions
+0
-37
dlib/dnn/loss.h
dlib/dnn/loss.h
+0
-37
No files found.
dlib/dnn/loss.h
View file @
7c65c8d2
...
...
@@ -100,43 +100,6 @@ namespace dlib
template
<
typename
SUBNET
>
using
loss_binary_hinge
=
add_loss_layer
<
loss_binary_hinge_
,
SUBNET
>
;
// ----------------------------------------------------------------------------------------
class
loss_no_label_
{
public:
const
static
unsigned
int
sample_expansion_factor
=
1
;
template
<
typename
SUBNET
>
double
compute_loss
(
const
tensor
&
input_tensor
,
SUBNET
&
sub
)
const
{
return
0
;
}
friend
void
serialize
(
const
loss_no_label_
&
,
std
::
ostream
&
out
)
{
serialize
(
"loss_no_label_"
,
out
);
}
friend
void
deserialize
(
loss_no_label_
&
,
std
::
istream
&
in
)
{
std
::
string
version
;
deserialize
(
version
,
in
);
if
(
version
!=
"loss_no_label_"
)
throw
serialization_error
(
"Unexpected version found while deserializing dlib::loss_no_label_."
);
}
};
template
<
typename
SUBNET
>
using
loss_no_label
=
add_loss_layer
<
loss_no_label_
,
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