[GPU] Remove marks cleanup after each pass (#12975)
This commit is contained in:
1 parent
349f3e02e0
commit
1ded0750c9
4 files changed
+4
-8
No files matched your search
@@ -58,4 +58,8 @@ void trim_to_outputs::run(program& p) {
|
||||
to_rem.push_back(node);
|
||||
}
|
||||
p.remove_nodes(to_rem);
|
||||
|
||||
for (auto& node : p.get_processing_order()) {
|
||||
node->unmark();
|
||||
}
|
||||
}
|
||||
@@ -31,11 +31,6 @@ public:
|
||||
explicit base_pass(const std::string& pass_name) : name(pass_name) {}
|
||||
virtual void run(program& p) = 0;
|
||||
std::string get_name() { return name; }
|
||||
void clean_marks(program& p) {
|
||||
for (auto& node : p.get_processing_order()) {
|
||||
node->unmark();
|
||||
}
|
||||
}
|
||||
|
||||
private:
|
||||
const std::string name;
|
||||
|
||||
@@ -266,8 +266,6 @@ public:
|
||||
}
|
||||
void unmark() { user_mark = 0; }
|
||||
bool is_marked() const { return user_mark != 0; }
|
||||
bool is_marked(uint8_t val) const { return user_mark == val; }
|
||||
uint8_t get_user_mark() const { return user_mark; }
|
||||
|
||||
void add_fused_activation(activation_func activation_func,
|
||||
activation_additional_params additional_params) {
|
||||
|
||||
@@ -69,6 +69,5 @@ void pass_manager::run(program& p, base_pass& pass) {
|
||||
dump_file_name += "0";
|
||||
dump_file_name += std::to_string(pass_count) + "_" + pass.get_name();
|
||||
p.dump_program(dump_file_name.c_str(), true);
|
||||
pass.clean_marks(p);
|
||||
pass_count++;
|
||||
}
|
||||
Reference in new issue
Block a user