Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/relax/transform/convert_layout.cc
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ class LayoutConvertMutator : public ExprMutator {
Expr RewriteExpr(const Expr& expr, const NLayout& to) {
auto fvisitleaf = [&](const Expr& expr, std::array<NLayout, 2> layouts) -> Expr {
NLayout from = layouts[0], to = layouts[1];
if (NLayoutEqual()(from, to) || layouts[0].LeafValue()->layout->name == "") return expr;
if (NLayoutEqual()(from, to) || layouts[0].LeafValue()->layout.name() == "") return expr;
// If not both from and to are unknown, then none of them can be unknown.
ICHECK(!NLayoutEqual()(from, LayoutDecision::InitUnknownDim()) &&
!NLayoutEqual()(to, LayoutDecision::InitUnknownDim()))
Expand Down
Loading