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
9cd06ce3
Commit
9cd06ce3
authored
Jul 04, 2017
by
Davis King
Browse files
Clarified spec slightly.
parent
64052a3f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
dlib/dnn/tensor_abstract.h
dlib/dnn/tensor_abstract.h
+2
-2
No files found.
dlib/dnn/tensor_abstract.h
View file @
9cd06ce3
...
@@ -33,9 +33,9 @@ namespace dlib
...
@@ -33,9 +33,9 @@ namespace dlib
Finally, the convention in dlib code is to interpret the tensor as a set of
Finally, the convention in dlib code is to interpret the tensor as a set of
num_samples() 3D arrays, each of dimension k() by nr() by nc(). Also,
num_samples() 3D arrays, each of dimension k() by nr() by nc(). Also,
while this class does not specify a memory layout, the convention is to
while this class does not specify a memory layout, the convention is to
assume that indexing into an element at coordinates (sample,k,
n
r,
n
c) can be
assume that indexing into an element at coordinates (sample,k,r,c) can be
accomplished via:
accomplished via:
host()[((sample*t.k() + k)*t.nr() +
n
r)*t.nc() +
n
c]
host()[((sample*t.k() + k)*t.nr() + r)*t.nc() + c]
THREAD SAFETY
THREAD SAFETY
Instances of this object are not thread-safe. So don't touch one from
Instances of this object are not thread-safe. So don't touch one from
...
...
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