Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
tic
Overview
Overview
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
wenyuanbo
tic
Commits
b0ef376a
Commit
b0ef376a
authored
Jul 25, 2018
by
Tianqi Chen
Committed by
GitHub
Jul 25, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix more type annotation (#1490)
parent
4de90113
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
src/pass/arg_binder.cc
+2
-2
No files found.
src/pass/arg_binder.cc
View file @
b0ef376a
...
@@ -168,7 +168,7 @@ void ArgBinder::BindDLTensor(const Buffer& buffer,
...
@@ -168,7 +168,7 @@ void ArgBinder::BindDLTensor(const Buffer& buffer,
if
(
Bind_
(
buffer
->
data
,
TVMArrayGet
(
Handle
(),
handle
,
intrinsic
::
kArrData
),
if
(
Bind_
(
buffer
->
data
,
TVMArrayGet
(
Handle
(),
handle
,
intrinsic
::
kArrData
),
arg_name
+
".data"
,
true
))
{
arg_name
+
".data"
,
true
))
{
Var
vptr
(
buffer
->
data
);
Var
vptr
(
buffer
->
data
);
def_handle_dtype_
.
Set
(
vptr
,
make_const
(
buffer
->
dtype
,
0
));
def_handle_dtype_
.
Set
(
vptr
,
ir
::
TypeAnnotation
(
buffer
->
dtype
));
// mark alignment of external bufs
// mark alignment of external bufs
init_nest_
.
emplace_back
(
AttrStmt
::
make
(
init_nest_
.
emplace_back
(
AttrStmt
::
make
(
vptr
,
ir
::
attr
::
storage_alignment
,
vptr
,
ir
::
attr
::
storage_alignment
,
...
@@ -190,7 +190,7 @@ void ArgBinder::BindDLTensor(const Buffer& buffer,
...
@@ -190,7 +190,7 @@ void ArgBinder::BindDLTensor(const Buffer& buffer,
}
}
// strides field
// strides field
Var
v_strides
(
arg_name
+
".strides"
,
Handle
());
Var
v_strides
(
arg_name
+
".strides"
,
Handle
());
def_handle_dtype_
.
Set
(
v_strides
,
make_const
(
tvm_shape_type
,
0
));
def_handle_dtype_
.
Set
(
v_strides
,
ir
::
TypeAnnotation
(
tvm_shape_type
));
init_nest_
.
emplace_back
(
LetStmt
::
make
(
init_nest_
.
emplace_back
(
LetStmt
::
make
(
v_strides
,
TVMArrayGet
(
Handle
(),
handle
,
intrinsic
::
kArrStrides
),
v_strides
,
TVMArrayGet
(
Handle
(),
handle
,
intrinsic
::
kArrStrides
),
nop
));
nop
));
...
...
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