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
977896cb
Commit
977896cb
authored
Apr 30, 2019
by
Haichen Shen
Committed by
Tianqi Chen
Apr 30, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Bugfix] Fix type code error for StringImm (#3050)
parent
f4fa0328
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
3 deletions
+5
-3
src/pass/lower_tvm_builtin.cc
+5
-2
tests/python/unittest/test_runtime_measure.py
+0
-1
No files found.
src/pass/lower_tvm_builtin.cc
View file @
977896cb
...
...
@@ -6,9 +6,9 @@
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
*
* http://www.apache.org/licenses/LICENSE-2.0
*
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
...
...
@@ -251,6 +251,9 @@ class BuiltinLower : public IRMutator {
stack_value_
,
static_cast
<
int
>
(
arg_stack_begin
+
i
-
1
),
intrinsic
::
kTVMValueContent
,
arg
));
int
arg_tcode
=
api_type
.
code
();
if
(
api_type
.
is_handle
()
&&
arg
.
as
<
StringImm
>
())
{
arg_tcode
=
kStr
;
}
if
(
IsArrayHandle
(
arg
))
arg_tcode
=
kArrayHandle
;
prep_seq_
.
emplace_back
(
Store
::
make
(
stack_tcode_
,
...
...
tests/python/unittest/test_runtime_measure.py
View file @
977896cb
...
...
@@ -29,7 +29,6 @@ def test_min_repeat_ms():
def
my_debug
(
filename
):
"""one call lasts for 100 ms and writes one character to a file"""
time
.
sleep
(
0.1
)
filename
=
ctypes
.
c_char_p
(
filename
.
value
)
.
value
with
open
(
filename
,
"a"
)
as
fout
:
fout
.
write
(
"c"
)
...
...
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