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
dd4850b5
Commit
dd4850b5
authored
Apr 21, 2017
by
Davis King
Browse files
Fixed tabbing
parent
70e767bf
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
21 deletions
+22
-21
dlib/dnn/tensor_tools.h
dlib/dnn/tensor_tools.h
+22
-21
No files found.
dlib/dnn/tensor_tools.h
View file @
dd4850b5
...
@@ -1368,27 +1368,28 @@ namespace dlib { namespace tt
...
@@ -1368,27 +1368,28 @@ namespace dlib { namespace tt
resizable_tensor
accum_buffer
;
resizable_tensor
accum_buffer
;
};
};
// ----------------------------------------------------------------------------------------
// ----------------------------------------------------------------------------------------
void
copy_tensor
(
tensor
&
dest
,
void
copy_tensor
(
size_t
dest_k_offset
,
tensor
&
dest
,
const
tensor
&
src
,
size_t
dest_k_offset
,
size_t
src_k_offset
,
const
tensor
&
src
,
size_t
count_k
size_t
src_k_offset
,
);
size_t
count_k
/*!
);
requires
/*!
- dest.nc() == src.nc()
requires
- dest.nr() == src.nr()
- dest.nc() == src.nc()
- dest.num_samples() == src.num_samples()
- dest.nr() == src.nr()
- dest.k() - dest_k_offset >= count_k
- dest.num_samples() == src.num_samples()
- src.k() - src_k_offset >= count_k
- dest.k() - dest_k_offset >= count_k
- is_same_object(dest,src) == false
- src.k() - src_k_offset >= count_k
ensures
- is_same_object(dest,src) == false
- performs: dest[i, k + dest_k_offset, r, c] = src[i, k + src_k_offset, r, c], where k in [0..count_k]
ensures
Copies content of each sample from src in to corresponding place of sample at dest.
- performs: dest[i, k + dest_k_offset, r, c] = src[i, k + src_k_offset, r, c], where k in [0..count_k]
!*/
Copies content of each sample from src in to corresponding place of sample at 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