Hzfengsy commented on code in PR #11518:
URL: https://github.com/apache/tvm/pull/11518#discussion_r887445608
##########
tests/python/unittest/test_te_create_primfunc.py:
##########
@@ -524,6 +524,15 @@ def test_int64_indices():
assert loop.extent.dtype == "int64"
+def test_zero_dim_add():
+ a = te.placeholder((), name="a", dtype="int32")
+ b = te.placeholder((), name="b", dtype="int32")
+ c = te.compute(a.shape, lambda *i: a(*i) + b(*i), name="c")
+ f = te.create_prim_func([a, b, c])
+ assert not f.body.block.reads
+ assert not f.body.block.writes
+
Review Comment:
Please assert equal to what we want
##########
src/meta_schedule/task_scheduler/task_scheduler.cc:
##########
@@ -94,6 +94,8 @@ void SendToRunner(const Runner& runner, const TuneContext&
context, PackedFunc l
void TaskSchedulerNode::InitializeTask(int task_id) {
TuneContext task = this->tasks[task_id];
+ TVM_PY_LOG(INFO, this->logging_func)
Review Comment:
remove it?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]