Skip to content
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

Added TensorFlow support to nncf.Tensor #3106

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

olegkkruglov
Copy link

Changes

  • Added tf_numeric.py and tf_linalg.py files with implementations of methods needed for nncf.Tensor support.
  • Added TensorFlow backend for nncf.Tensor.
  • Fixed bug in __ifloordiv__ operator for nncf.Tensor.
  • Added related tests.

Reason for changes

Currently TensorFlow tensors are not supported by nncf.Tensor. It prevents #3041 from being done.

Related tickets

#3041

Tests

TestTFNNCFTensorOperators and TestGPUTFNNCFTensorOperators classes were added to tests/tensorflow/test_tensor.py. Some changes were necessary for tests/cross_fw/test_templates/template_test_nncf_tensor.py, mostly related to different device management in TensorFlow.

@github-actions github-actions bot added the NNCF TF Pull requests that updates NNCF TensorFlow label Nov 22, 2024
@github-actions github-actions bot added the documentation Improvements or additions to documentation label Nov 22, 2024
@olegkkruglov olegkkruglov marked this pull request as ready for review November 22, 2024 17:01
@olegkkruglov olegkkruglov requested a review from a team as a code owner November 22, 2024 17:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation NNCF TF Pull requests that updates NNCF TensorFlow
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant