Skip to content

Commit

Permalink
Fix graph partitioner when two MLIROp instances go side-by-side. Fix …
Browse files Browse the repository at this point in the history
…in return statement in is_dubug function. (#157)
  • Loading branch information
slyalin authored Jul 30, 2024
1 parent 09a1342 commit 2a646fb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ namespace ov {
namespace mlir {

bool is_debug() {
util::getenv_bool("OV_MLIR_DEBUG", false);
return util::getenv_bool("OV_MLIR_DEBUG", false);
}

Location createLayerLocation(MLIRContext* ctx, const std::string& layerName, const std::string& layerType) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,11 @@ void SubgraphTracker::set_dependencies(NodePtr node, const Dependencies& depende
// set/get subgraph id that a give node belongs to

SubgraphID SubgraphTracker::get_subgraph_id(NodePtr node) {
auto id = node->get_rt_info().at("__subgraph_id").as<SubgraphID>();
const auto& rti = node->get_rt_info();
if(!rti.count("__subgraph_id")) {
return nullptr;
}
auto id = rti.at("__subgraph_id").as<SubgraphID>();
if(id) {
id = ov::symbol::ancestor_of(id);
}
Expand Down

0 comments on commit 2a646fb

Please sign in to comment.