-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Deprecated API] Remove api set_element_type() in ov::descriptor::Tensor #22476
Closed
zhaixuejun1993
wants to merge
9
commits into
openvinotoolkit:master
from
zhaixuejun1993:xuejun/deprecated_1.0_part4
Closed
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
7be1980
[Deprecated API] Remove api set_element_type() in ov::descriptor::Tensor
zhaixuejun1993 218ad45
Merge branch 'master' into xuejun/deprecated_1.0_part4
zhaixuejun1993 3d38a74
Fix warning as error
zhaixuejun1993 66ba756
Fix warning as error
zhaixuejun1993 c921ea2
Revert "Fix warning as error"
zhaixuejun1993 ab00bdb
Revert "Fix warning as error"
zhaixuejun1993 c7c3750
Merge branch 'master' into xuejun/deprecated_1.0_part4
zhaixuejun1993 b85b298
[Deprecated API] Remove .set_tensor_type()
zhaixuejun1993 8853bc6
Fix error
zhaixuejun1993 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -124,8 +124,14 @@ void MemoryLSTMCellTest::SetUp() { | |
auto out_hidden = tensor_iterator->get_iter_value(H_o, -1); | ||
auto out_cell = tensor_iterator->get_iter_value(C_o, -1); | ||
|
||
out_hidden.get_tensor().set_element_type(element_type); | ||
out_cell.get_tensor().set_element_type(element_type); | ||
if (auto parameter = dynamic_cast<ov::op::v0::Parameter*>(out_hidden.get_node())) { | ||
parameter->set_element_type(element_type); | ||
parameter->validate_and_infer_types(); | ||
} | ||
if (auto parameter = dynamic_cast<ov::op::v0::Parameter*>(out_cell.get_node())) { | ||
parameter->set_element_type(element_type); | ||
parameter->validate_and_infer_types(); | ||
} | ||
|
||
auto cell_memory_write = std::make_shared<ov::op::v6::Assign>(out_cell, var_cell); | ||
auto hidden_memory_write = std::make_shared<ov::op::v6::Assign>(out_hidden, var_hidden); | ||
|
@@ -274,8 +280,14 @@ void MemoryLSTMCellTest::create_pure_tensor_iterator_model() { | |
auto out_hidden = tensor_iterator->get_iter_value(H_o, -1); | ||
auto out_cell = tensor_iterator->get_iter_value(C_o, -1); | ||
|
||
out_hidden.get_tensor().set_element_type(element_type); | ||
out_cell.get_tensor().set_element_type(element_type); | ||
Comment on lines
-277
to
-278
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @itikhono was |
||
if (auto parameter = dynamic_cast<ov::op::v0::Parameter*>(out_hidden.get_node())) { | ||
parameter->set_element_type(element_type); | ||
parameter->validate_and_infer_types(); | ||
} | ||
if (auto parameter = dynamic_cast<ov::op::v0::Parameter*>(out_cell.get_node())) { | ||
parameter->set_element_type(element_type); | ||
parameter->validate_and_infer_types(); | ||
} | ||
|
||
auto final_reshape_pattern = | ||
std::make_shared<ov::op::v0::Constant>(element::i64, Shape{4}, std::vector<size_t>({1, 1, 1, hiddenSize})); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ilya-lavrenov @vurusovs Why we need to deprecated this API? Seems like this change will take more time & more complex.