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
1de8eaf8
Commit
1de8eaf8
authored
Oct 18, 2015
by
Davis King
Browse files
Tweaked move constructor to the form I will probably use.
parent
5162c984
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
dlib/dnn/cuda_dlib.h
dlib/dnn/cuda_dlib.h
+7
-2
No files found.
dlib/dnn/cuda_dlib.h
View file @
1de8eaf8
...
...
@@ -115,11 +115,16 @@ namespace dlib
dropout
(
const
dropout
&
)
=
delete
;
dropout
&
operator
=
(
const
dropout
&
)
=
delete
;
// but is movable
dropout
(
dropout
&&
)
=
d
efault
;
dropout
&
operator
=
(
dropout
&&
)
=
default
;
dropout
(
dropout
&&
item
)
:
d
ropout
()
{
swap
(
item
);
}
dropout
&
operator
=
(
dropout
&&
item
)
{
swap
(
item
);
return
*
this
;
}
dropout
(
float
drop_rate
=
0.5
);
dropout
(
float
drop_rate
,
int
seed
);
void
swap
(
dropout
&
item
)
{
// TODO
}
void
operator
()
(
resizable_tensor
&
dest
,
...
...
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