mirror of
https://github.com/davisking/dlib.git
synced 2024-11-01 10:14:53 +08:00
Clarified spec slightly.
This commit is contained in:
parent
64052a3ff1
commit
9cd06ce372
@ -33,9 +33,9 @@ namespace dlib
|
||||
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,
|
||||
while this class does not specify a memory layout, the convention is to
|
||||
assume that indexing into an element at coordinates (sample,k,nr,nc) can be
|
||||
assume that indexing into an element at coordinates (sample,k,r,c) can be
|
||||
accomplished via:
|
||||
host()[((sample*t.k() + k)*t.nr() + nr)*t.nc() + nc]
|
||||
host()[((sample*t.k() + k)*t.nr() + r)*t.nc() + c]
|
||||
|
||||
THREAD SAFETY
|
||||
Instances of this object are not thread-safe. So don't touch one from
|
||||
|
Loading…
Reference in New Issue
Block a user