From af205920fbe07ed6903d7cf2fd461eef69764eb7 Mon Sep 17 00:00:00 2001 From: Eric Lunderberg Date: Tue, 26 Sep 2023 09:14:21 -0500 Subject: [PATCH 1/2] [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`. --- 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 8348365761fa..8f4b91ef55f9 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); From 28ed2d75060b94919c6b746db7e1ce20eab9785c Mon Sep 17 00:00:00 2001 From: Eric Lunderberg Date: Tue, 26 Sep 2023 13:31:25 -0500 Subject: [PATCH 2/2] ci bump