Skip to content

Commit

Permalink
Merge pull request PaddlePaddle#27 from tc20042008/xk-cinn-trivalop-fuse
Browse files Browse the repository at this point in the history
fix namespace bugs
  • Loading branch information
tc20042008 committed Mar 6, 2024
2 parents 280c4a2 + ae48ead commit 72af8ac
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions paddle/cinn/frontend/group_pattern_util.cc
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
#include "paddle/cinn/frontend/group_pattern_util.h"
#include <optional>

namespace cinn::frontend {

namespace {

using IS = InjectiveSourcePattern<FrontendPattern>;
using R = ReductionPattern<FrontendPattern>;
using PS = PartialShardablePattern<FrontendPattern>;
using IS = api::InjectiveSourcePattern<FrontendPattern>;
using R = api::ReductionPattern<FrontendPattern>;
using PS = api::PartialShardablePattern<FrontendPattern>;
using InternalPattern = std::variant<IS, R, PS>;


Expand Down
2 changes: 1 addition & 1 deletion paddle/cinn/frontend/group_pattern_util.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ struct ErrorGroupPattern {
std::string error_string;
};

std::variant<GroupPattern, ErrorGroupPattern> GenerateGroupPatternFromFusionOp(const pir::FusionOp&);
std::variant<GroupPattern, ErrorGroupPattern> GenerateGroupPatternFromFusionOp(const cinn::dialect::FusionOp&);

}

0 comments on commit 72af8ac

Please sign in to comment.