|
|
@@ -23,6 +23,9 @@ |
|
|
|
#include "graph/debug/ge_attr_define.h" |
|
|
|
|
|
|
|
namespace ge { |
|
|
|
namespace { |
|
|
|
const int64_t kDynamicShapeDim = -2; |
|
|
|
} |
|
|
|
Status DynamicSingleOpResetShapePass::Run(ComputeGraphPtr graph) { |
|
|
|
GE_CHECK_NOTNULL(graph); |
|
|
|
for (const auto &node : graph->GetDirectNode()) { |
|
|
@@ -38,7 +41,7 @@ Status DynamicSingleOpResetShapePass::Run(ComputeGraphPtr graph) { |
|
|
|
} |
|
|
|
|
|
|
|
auto op_desc = node->GetOpDesc(); |
|
|
|
std::vector<int64_t> dynamic_shape_dims = {-2}; |
|
|
|
std::vector<int64_t> dynamic_shape_dims = {kDynamicShapeDim}; |
|
|
|
GeShape dynamic_shape(dynamic_shape_dims); |
|
|
|
for (size_t i = 0; i < op_desc->GetAllInputsDesc().size(); i++) { |
|
|
|
auto input_desc = op_desc->MutableInputDesc(static_cast<uint32_t>(i)); |
|
|
|