Browse Source

Bugfix: fix transpose fusion with input&output format check

tags/v1.1.0
zhaoxinxin 4 years ago
parent
commit
61d3f45e9a
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      ge/graph/passes/transpose_transdata_pass.cc

+ 1
- 1
ge/graph/passes/transpose_transdata_pass.cc View File

@@ -48,7 +48,7 @@ Status TransposeTransDataPass::Run(NodePtr &node) {
}
auto input_format = op_desc->GetInputDescPtr(0)->GetFormat();
auto output_format = op_desc->GetOutputDescPtr(0)->GetFormat();
if (intput_format == output_format) {
if (input_format == output_format) {
GELOGW("Node %s input format is %s, output format is %s, should not happend. Ignore pass.",
op_desc->GetName().c_str(),
TypeUtils::FormatToSerialString(input_format).c_str(),


Loading…
Cancel
Save