Closed ternaus closed 5 months ago
This pull request updates the benchmark script to include support for the 'torchvision' library, adds new transformations, and refactors the code for better performance and readability. It also updates the test cases to reflect these changes.
Files | Changes |
---|---|
benchmark/benchmark.py benchmark/utils.py benchmark.sh |
Refactored benchmark script to include 'torchvision' library, added new transformations, and updated utility functions. |
albucore/functions.py albucore/utils.py |
Updated functions to handle different data types and added new utility functions for better performance. |
tests/test_multiply.py tests/test_add.py tests/test_add_weighted.py tests/test_normalize_per_image.py tests/test_multiply_add.py tests/test_power.py |
Updated test cases to reflect changes in the benchmark script and added new test cases for better coverage. |
benchmark/results/float32_1.md benchmark/results/uint8_1.md benchmark/results/float32_3.md benchmark/results/float32_5.md benchmark/results/uint8_3.md benchmark/results/uint8_5.md |
Updated benchmark results to include 'torchvision' library. |
Attention: Patch coverage is 49.15254%
with 150 lines
in your changes missing coverage. Please review.
Please upload report for BASE (
main@17e2d02
). Learn more about missing BASE report.
Files | Patch % | Lines |
---|---|---|
benchmark/benchmark.py | 0.00% | 130 Missing :warning: |
benchmark/utils.py | 0.00% | 8 Missing :warning: |
albucore/functions.py | 90.90% | 7 Missing :warning: |
tests/test_add.py | 64.28% | 5 Missing :warning: |
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Summary by Sourcery
This pull request updates the benchmark script to include support for the torchvision library, adds a new benchmark class MultiplyAdd, and enhances the handling of image data types and shapes. It also updates the benchmark results and test cases accordingly.