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
7f7ddcaa
"vscode:/vscode.git/clone" did not exist on "9334421d2bbee20f6aaa21da7e3721927418396f"
Commit
7f7ddcaa
authored
Sep 28, 2015
by
Davis King
Browse files
merged
parents
20536bec
27f04a37
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
85 additions
and
85 deletions
+85
-85
dlib/array2d/array2d_kernel.h
dlib/array2d/array2d_kernel.h
+1
-1
dlib/dnn/core.h
dlib/dnn/core.h
+14
-14
dlib/dnn/core_abstract.h
dlib/dnn/core_abstract.h
+66
-66
dlib/dnn/input_abstract.h
dlib/dnn/input_abstract.h
+4
-4
No files found.
dlib/array2d/array2d_kernel.h
View file @
7f7ddcaa
...
@@ -161,7 +161,7 @@ namespace dlib
...
@@ -161,7 +161,7 @@ namespace dlib
}
}
#ifdef DLIB_HAS_RVALUE_REFERENCES
#ifdef DLIB_HAS_RVALUE_REFERENCES
array2d
(
array2d
&&
item
)
array2d
(
array2d
&&
item
)
:
array2d
()
{
{
swap
(
item
);
swap
(
item
);
}
}
...
...
dlib/dnn/core.h
View file @
7f7ddcaa
dlib/dnn/core_abstract.h
View file @
7f7ddcaa
...
@@ -70,8 +70,8 @@ namespace dlib
...
@@ -70,8 +70,8 @@ namespace dlib
/*!
/*!
ensures
ensures
- #size() == N
- #size() == N
- Initializes all N elements in this stack with the given item.
- Initializes all N elements in this stack with the given item.
E.g.
E.g.
top()==item, pop().top()==item, pop().pop().top()==item, etc.
top()==item, pop().top()==item, pop().pop().top()==item, etc.
!*/
!*/
const
T
&
top
(
const
T
&
top
(
...
@@ -93,8 +93,8 @@ namespace dlib
...
@@ -93,8 +93,8 @@ namespace dlib
)
const
;
)
const
;
/*!
/*!
ensures
ensures
- returns the number of elements in this stack. In particular, the
- returns the number of elements in this stack. In particular, the
number
number
returned is always N.
returned is always N.
!*/
!*/
const
sstack
<
T
,
N
-
1
>&
pop
(
const
sstack
<
T
,
N
-
1
>&
pop
(
...
...
dlib/dnn/input_abstract.h
View file @
7f7ddcaa
...
@@ -44,10 +44,10 @@ namespace dlib
...
@@ -44,10 +44,10 @@ namespace dlib
ensures
ensures
- Constructs this object from item. This form of constructor is optional
- Constructs this object from item. This form of constructor is optional
but it allows you to provide a conversion from one input layer type to
but it allows you to provide a conversion from one input layer type to
another. For example, the following code is valid only if my_input2 can
another. For example, the following code is valid only if my_input
_layer
2 can
be constructed from my_input1:
be constructed from my_input
_layer
1:
relu<fc<relu<fc<my_input1>>>> my_dnn1;
relu<fc<relu<fc<my_input
_layer
1>>>> my_dnn1;
relu<fc<relu<fc<my_input2>>>> my_dnn2(my_dnn1);
relu<fc<relu<fc<my_input
_layer
2>>>> my_dnn2(my_dnn1);
This kind of pattern is useful if you want to use one type of input layer
This kind of pattern is useful if you want to use one type of input layer
during training but a different type of layer during testing since it
during training but a different type of layer during testing since it
allows you to easily convert between related deep neural network types.
allows you to easily convert between related deep neural network types.
...
...
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