| 89 | // clang-format on |
| 90 | |
| 91 | TensorReformatPass::RelayoutPlaceholder::RelayoutPlaceholder( |
| 92 | VarNode* src_var, const ReformatKey& key) |
| 93 | : Super(src_var->owner_graph(), {}, "RelayoutPlaceholder", {src_var}), |
| 94 | m_key{key} { |
| 95 | add_input({src_var}); |
| 96 | add_equivalence_component<PODHash<ReformatKey>>(&m_key); |
| 97 | m_output = ReformatManager::instance().get(m_key)({src_var}); |
| 98 | add_output(None)->dtype(src_var->dtype()); |
| 99 | } |
| 100 | |
| 101 | void TensorReformatPass::RelayoutPlaceholder::scn_do_execute() { |
| 102 | mgb_throw(InternalError, "RelayoutPlaceholder opr can not be executed"); |
nothing calls this directly
no test coverage detected