Added TensorFlow support to nncf.Tensor
#3106
Open
+779
−13
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.
Changes
tf_numeric.py
andtf_linalg.py
files with implementations of methods needed fornncf.Tensor
support.nncf.Tensor
.__ifloordiv__
operator fornncf.Tensor
.Reason for changes
Currently TensorFlow tensors are not supported by
nncf.Tensor
. It prevents #3041 from being done.Related tickets
#3041
Tests
TestTFNNCFTensorOperators
andTestGPUTFNNCFTensorOperators
classes were added totests/tensorflow/test_tensor.py
. Some changes were necessary fortests/cross_fw/test_templates/template_test_nncf_tensor.py
, mostly related to different device management in TensorFlow.