|
|
@@ -46,6 +46,15 @@ Status TransposeTransDataPass::Run(NodePtr &node) { |
|
|
|
if (op_desc->GetType() != TRANSPOSED) { |
|
|
|
return SUCCESS; |
|
|
|
} |
|
|
|
auto input_format = op_desc->GetInputDescPtr(0)->GetFormat(); |
|
|
|
auto output_format = op_desc->GetOutputDescPtr(0)->GetFormat(); |
|
|
|
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(), |
|
|
|
TypeUtils::FormatToSerialString(output_format).c_str()); |
|
|
|
return SUCCESS; |
|
|
|
} |
|
|
|
if (CheckOneInAndOneOutDataAnchor(node) != SUCCESS) { |
|
|
|
return FAILED; |
|
|
|
} |
|
|
|