Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
D
dlib
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
钟尚武
dlib
Commits
c191b376
Commit
c191b376
authored
Jan 26, 2018
by
Davis King
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Made alias_tensor take a default offset of 0 so you can easily use it to
reshape a tensor.
parent
546bdf51
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
tensor.h
dlib/dnn/tensor.h
+2
-2
tensor_abstract.h
dlib/dnn/tensor_abstract.h
+2
-2
No files found.
dlib/dnn/tensor.h
View file @
c191b376
...
...
@@ -617,7 +617,7 @@ namespace dlib
alias_tensor_instance
operator
()
(
tensor
&
t
,
size_t
offset
size_t
offset
=
0
)
const
{
DLIB_CASSERT
(
offset
+
size
()
<=
t
.
size
(),
...
...
@@ -642,7 +642,7 @@ namespace dlib
alias_tensor_const_instance
operator
()
(
const
tensor
&
t
,
size_t
offset
size_t
offset
=
0
)
const
{
alias_tensor_const_instance
temp
;
...
...
dlib/dnn/tensor_abstract.h
View file @
c191b376
...
...
@@ -680,7 +680,7 @@ namespace dlib
alias_tensor_instance
operator
()
(
tensor
&
t
,
size_t
offset
size_t
offset
=
0
)
const
;
/*!
requires
...
...
@@ -701,7 +701,7 @@ namespace dlib
alias_tensor_const_instance
operator
()
(
const
tensor
&
t
,
size_t
offset
size_t
offset
=
0
)
const
;
/*!
requires
...
...
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