Skip to content

[PT FE] Support inplace operations on aliases of tensors#17856

Merged
mvafin merged 20 commits intoopenvinotoolkit:masterfrom
mvafin:mvafin/pt_fe/aliases
Jun 13, 2023
Merged

[PT FE] Support inplace operations on aliases of tensors#17856
mvafin merged 20 commits intoopenvinotoolkit:masterfrom
mvafin:mvafin/pt_fe/aliases

Conversation

@mvafin
Copy link
Copy Markdown
Contributor

@mvafin mvafin commented Jun 2, 2023

Details:

  • Support inplace operations on aliases of tensors
  • Add support for operations aten::copy_, aten::zero_ and aten::exp_ and tests
  • Support aten::chunk as input to prim::Loop with aten::__getitem__ inside which can be found in detectron2 mask models
  • Fix issue with accuracy problems in scripted mobilevitv2 which was cause by incorrect type of aten::div operation

Tickets:

  • 109778

@mvafin mvafin requested review from a team as code owners June 2, 2023 09:10
@mvafin mvafin requested a review from slyalin June 2, 2023 09:10
@github-actions github-actions bot added category: CPP API OpenVINO CPP API bindings category: Python API OpenVINO Python bindings category: PyTorch FE OpenVINO PyTorch Frontend labels Jun 2, 2023
@mvafin mvafin requested a review from eaidova June 7, 2023 10:34
@mvafin mvafin requested a review from rkazants June 7, 2023 20:22
@mvafin mvafin requested a review from itikhono June 7, 2023 20:22
attrs["PtSchema"] = "None";
} else {
attrs["PtTypeName"] = m_decoder->get_op_type();
attrs["PtSchema"] = m_decoder->get_schema();
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

may be better to add a comment what is the schema?

@mvafin mvafin merged commit 48dec10 into openvinotoolkit:master Jun 13, 2023
t-jankowski pushed a commit to t-jankowski/openvino that referenced this pull request Jun 13, 2023
…lkit#17856)

* Support operations on aliases of tensors

* Add tests

* Fix issue with convnd

* Fix code style

* Fix issue with tensor index of mutated tensor

* Fix if types alignment

* Fix issues in keypoint detectron2

* Fix issue with masks in detectron2

* Fix acuracy issue in mobilevitv2 models

* Remove unused includes

* Return upsample case in lictconstruct replacer

* Fix types, apply review feedback

* Apply feedback

* Revert change of not using shared_from_this for getitem

* Fix issue in prim::device transformation

* Fix layer tests

* Apply review feedback

* Fix issue with not existing alias to tensor
alvoron pushed a commit to alvoron/openvino that referenced this pull request Jun 21, 2023
…lkit#17856)

* Support operations on aliases of tensors

* Add tests

* Fix issue with convnd

* Fix code style

* Fix issue with tensor index of mutated tensor

* Fix if types alignment

* Fix issues in keypoint detectron2

* Fix issue with masks in detectron2

* Fix acuracy issue in mobilevitv2 models

* Remove unused includes

* Return upsample case in lictconstruct replacer

* Fix types, apply review feedback

* Apply feedback

* Revert change of not using shared_from_this for getitem

* Fix issue in prim::device transformation

* Fix layer tests

* Apply review feedback

* Fix issue with not existing alias to tensor
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

category: CPP API OpenVINO CPP API bindings category: Python API OpenVINO Python bindings category: PyTorch FE OpenVINO PyTorch Frontend

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants