Used dynamic shape (#3234)
This commit is contained in:
parent
13806bf719
commit
b2714f18af
@ -561,7 +561,7 @@ void HeteroExecutableNetwork::InitNgraph(const InferenceEngine::ICNNNetwork& net
|
|||||||
output.remove_target_input(input);
|
output.remove_target_input(input);
|
||||||
auto result = std::make_shared<ngraph::op::Result>(output);
|
auto result = std::make_shared<ngraph::op::Result>(output);
|
||||||
ngraph::copy_runtime_info(output.get_node_shared_ptr(), result);
|
ngraph::copy_runtime_info(output.get_node_shared_ptr(), result);
|
||||||
auto parameter = std::make_shared<ngraph::op::Parameter>(output.get_element_type(), output.get_shape());
|
auto parameter = std::make_shared<ngraph::op::Parameter>(output.get_element_type(), output.get_partial_shape());
|
||||||
ngraph::copy_runtime_info(input.get_node()->shared_from_this(), parameter);
|
ngraph::copy_runtime_info(input.get_node()->shared_from_this(), parameter);
|
||||||
input.replace_source_output(parameter->output(0));
|
input.replace_source_output(parameter->output(0));
|
||||||
results.push_back(result);
|
results.push_back(result);
|
||||||
|
Loading…
Reference in New Issue
Block a user