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
d4da6c53
"tools/htmlify/to_xml.cpp" did not exist on "abc6f88b22e021a4f4739022f912c63effe6a6f3"
Commit
d4da6c53
authored
Nov 26, 2016
by
Dennis Francis
Browse files
adapt to dlib indentation style
parent
af76e826
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
53 additions
and
58 deletions
+53
-58
dlib/dnn/loss.h
dlib/dnn/loss.h
+52
-52
dlib/dnn/loss_abstract.h
dlib/dnn/loss_abstract.h
+0
-1
dlib/test/dnn.cpp
dlib/test/dnn.cpp
+1
-5
No files found.
dlib/dnn/loss.h
View file @
d4da6c53
dlib/dnn/loss_abstract.h
View file @
d4da6c53
...
@@ -584,7 +584,6 @@ namespace dlib
...
@@ -584,7 +584,6 @@ namespace dlib
template
<
typename
SUBNET
>
template
<
typename
SUBNET
>
using
loss_mean_squared
=
add_loss_layer
<
loss_mean_squared_
,
SUBNET
>
;
using
loss_mean_squared
=
add_loss_layer
<
loss_mean_squared_
,
SUBNET
>
;
}
}
#endif // DLIB_DNn_LOSS_ABSTRACT_H_
#endif // DLIB_DNn_LOSS_ABSTRACT_H_
...
...
dlib/test/dnn.cpp
View file @
d4da6c53
...
@@ -1758,11 +1758,7 @@ namespace
...
@@ -1758,11 +1758,7 @@ namespace
y
[
ii
]
=
(
true_intercept
+
true_slope
*
static_cast
<
float
>
(
val
)
+
distribution
(
generator
));
y
[
ii
]
=
(
true_intercept
+
true_slope
*
static_cast
<
float
>
(
val
)
+
distribution
(
generator
));
}
}
using
net_type
=
loss_mean_squared
<
using
net_type
=
loss_mean_squared
<
fc
<
1
,
input
<
matrix
<
double
>>>>
;
fc
<
1
,
input
<
matrix
<
double
>>
>
>
;
net_type
net
;
net_type
net
;
layer
<
1
>
(
net
).
layer_details
().
set_bias_learning_rate_multiplier
(
300
);
layer
<
1
>
(
net
).
layer_details
().
set_bias_learning_rate_multiplier
(
300
);
sgd
defsolver
;
sgd
defsolver
;
...
...
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