Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
D
dlib
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
钟尚武
dlib
Commits
7c65c8d2
Commit
7c65c8d2
authored
Nov 18, 2015
by
Davis King
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
removed cruft
parent
7e12a32b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
37 deletions
+0
-37
loss.h
dlib/dnn/loss.h
+0
-37
No files found.
dlib/dnn/loss.h
View file @
7c65c8d2
...
@@ -100,43 +100,6 @@ namespace dlib
...
@@ -100,43 +100,6 @@ namespace dlib
template
<
typename
SUBNET
>
template
<
typename
SUBNET
>
using
loss_binary_hinge
=
add_loss_layer
<
loss_binary_hinge_
,
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