[LPT] Revert changes in fold_reshape (#17068)
This commit is contained in:
committed by
GitHub
parent
e53fc86988
commit
f100c36ac9
@@ -321,7 +321,9 @@ std::shared_ptr<Node> fold_reshape(Args&&... args) {
|
||||
const auto data_const = ov::as_type_ptr<opset1::Constant>(node->get_input_node_shared_ptr(0));
|
||||
const auto target_shape = ov::as_type_ptr<opset1::Constant>(node->get_input_node_shared_ptr(1));
|
||||
if (data_const && target_shape) {
|
||||
return std::make_shared<opset1::Constant>(*data_const, node->get_output_shape(0));
|
||||
return std::make_shared<opset1::Constant>(node->get_input_element_type(0),
|
||||
node->get_output_shape(0),
|
||||
data_const->get_data_ptr());
|
||||
}
|
||||
return fold<opset1::Reshape>(std::forward<Args>(args)...);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user