nncf icon indicating copy to clipboard operation
nncf copied to clipboard

cast tensor only if detect overflow

Open AlexanderDokuchaev opened this issue 1 year ago • 1 comments

Changes

Reason for changes

Related tickets

Tests

AlexanderDokuchaev avatar Jan 09 '24 23:01 AlexanderDokuchaev

Codecov Report

Attention: 66 lines in your changes are missing coverage. Please review.

Comparison is base (ae721fd) 46.04% compared to head (4620e52) 81.21%.

Additional details and impacted files

Impacted file tree graph

@@             Coverage Diff              @@
##           develop    #2383       +/-   ##
============================================
+ Coverage    46.04%   81.21%   +35.17%     
============================================
  Files          492      492               
  Lines        44678    44734       +56     
============================================
+ Hits         20570    36332    +15762     
+ Misses       24108     8402    -15706     
Files Coverage Δ
nncf/torch/tensor_statistics/collectors.py 95.84% <100.00%> (+51.18%) :arrow_up:
nncf/onnx/statistics/collectors.py 65.08% <11.42%> (-9.75%) :arrow_down:
nncf/openvino/statistics/collectors.py 0.00% <0.00%> (-95.33%) :arrow_down:

... and 353 files with indirect coverage changes

Flag Coverage Δ
COMMON 44.83% <ø> (ø)
ONNX 33.73% <5.05%> (-0.05%) :arrow_down:
OPENVINO ?
TENSORFLOW 29.56% <0.00%> (?)
TORCH 62.36% <29.29%> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

Components Coverage Δ
common 92.81% <ø> (+23.39%) :arrow_up:
torch 93.28% <100.00%> (+60.24%) :arrow_up:
tensorflow 94.01% <ø> (+94.01%) :arrow_up:
onnx 95.40% <11.42%> (-0.98%) :arrow_down:
openvino 0.00% <0.00%> (-90.65%) :arrow_down:
ptq 59.56% <ø> (-21.87%) :arrow_down:

codecov[bot] avatar Jan 09 '24 23:01 codecov[bot]