You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tvm.apache.org by GitBox <gi...@apache.org> on 2020/08/21 17:46:20 UTC
[GitHub] [incubator-tvm] tqchen commented on a change in pull request #6317: [TIR] Enforce buffer pointer var type to be consistent with dtype.
tqchen commented on a change in pull request #6317:
URL: https://github.com/apache/incubator-tvm/pull/6317#discussion_r474840005
##########
File path: src/tir/ir/stmt.cc
##########
@@ -263,6 +263,9 @@ TVM_STATIC_IR_FUNCTOR(ReprPrinter, vtable)
// Allocate
Allocate::Allocate(Var buffer_var, DataType dtype, Array<PrimExpr> extents, PrimExpr condition,
Stmt body) {
+ // TODO(tvm-team): Add invariant check to make sure
+ // IsPointerPType(buffer_var->type_annotation, dtype)
+ // once we fix the allocate hybrid script printing.
Review comment:
yes
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org