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
64e5681d
Commit
64e5681d
authored
Jan 09, 2019
by
Wei Chen
Committed by
Tianqi Chen
Jan 09, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PASS]Treat Halide call_type as pure expression (#2404)
parent
129a1c18
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
1 deletions
+23
-1
3rdparty/HalideIR
+1
-1
tests/cpp/simple_passes_test.cc
+22
-0
No files found.
HalideIR
@
6e7c1f04
Subproject commit
a08e26e5a97f4ef4d566a42f6c78704b3f9c7b8a
Subproject commit
6e7c1f046fda536562dc80977e93324fee2324bd
tests/cpp/simple_passes_test.cc
0 → 100644
View file @
64e5681d
#include <dmlc/logging.h>
#include <gtest/gtest.h>
#include <tvm/tvm.h>
#include <tvm/ir_pass.h>
TEST
(
SimplePasses
,
HasSideEffect
)
{
using
namespace
tvm
;
auto
n
=
var
(
"n"
);
Array
<
Expr
>
shape
;
shape
.
push_back
(
n
);
auto
A
=
placeholder
(
shape
,
Float
(
32
),
"A"
);
CHECK
(
!
tvm
::
ir
::
HasSideEffect
(
A
[
0
]));
}
int
main
(
int
argc
,
char
**
argv
)
{
testing
::
InitGoogleTest
(
&
argc
,
argv
);
testing
::
FLAGS_gtest_death_test_style
=
"threadsafe"
;
return
RUN_ALL_TESTS
();
}
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