Skip to content

Commit

Permalink
fix namespace bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
jiahy0825 committed Mar 6, 2024
1 parent 667c23a commit ae48ead
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 ae48ead

Please sign in to comment.