You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tvm.apache.org by sa...@apache.org on 2023/09/27 15:14:37 UTC
[tvm] branch unity updated: [Unity][Analysis] Change warning to info for non-affine transform (#15820)
This is an automated email from the ASF dual-hosted git repository.
sanirudh pushed a commit to branch unity
in repository https://gitbox.apache.org/repos/asf/tvm.git
The following commit(s) were added to refs/heads/unity by this push:
new ea329cba02 [Unity][Analysis] Change warning to info for non-affine transform (#15820)
ea329cba02 is described below
commit ea329cba02428669b8489596d3119dd6c43a9861
Author: Eric Lunderberg <Lu...@users.noreply.github.com>
AuthorDate: Wed Sep 27 10:14:30 2023 -0500
[Unity][Analysis] Change warning to info for non-affine transform (#15820)
* [Unity][Analysis] Change warning to info for non-affine transform
A `PrimFunc` may contain transformations that are not affine, or that
are not recognizable as being affine. Prior to this commit, this
produced a `LOG(WARNING)` stating that this was an error in the index
analysis. Because this is the expected behavior for these functions,
this commit updates the message to instead write to `DLOG(INFO)`.
The other uses of `LOG(WARNING)` inside `layout_transformation.cc` are
kept as-is, as they relate to limitations of the analysis, rather than
being a statement about the analyzed `PrimFunc`.
* ci bump
---
src/relax/analysis/layout_transformation.cc | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/relax/analysis/layout_transformation.cc b/src/relax/analysis/layout_transformation.cc
index 8348365761..8f4b91ef55 100644
--- a/src/relax/analysis/layout_transformation.cc
+++ b/src/relax/analysis/layout_transformation.cc
@@ -440,8 +440,8 @@ class BlockAnalyzer : public StmtExprVisitor {
/*indices=*/indices, /*input_iters*/ spatial_dom_,
/*predicate*/ 1, /*check_level*/ arith::IterMapLevel::NoCheck, &arith_analyzer_);
if (result->indices.empty()) {
- LOG(WARNING) << "[LayoutInference] Failed to analyze indices " << indices
- << ", error: " << result->errors;
+ DLOG(INFO) << "[LayoutInference] Failed to analyze indices " << indices
+ << ", error: " << result->errors;
return {};
}
return GetSpatialLayout(result);