keras-team / keras-core

A multi-backend implementation of the Keras API, with support for TensorFlow, JAX, and PyTorch.
Apache License 2.0
1.27k stars 115 forks source link

Add support for Tensorflow SparseTensors: core layers. #854

Closed hertschuh closed 12 months ago

hertschuh commented 12 months ago

Added tf.SparseTensor support for ops:

Added tf.SparseTensor support for core layers:

codecov[bot] commented 12 months ago

Codecov Report

Patch coverage: 96.36% and project coverage change: +0.03% :tada:

Comparison is base (ab2ee38) 76.25% compared to head (5b87dbd) 76.28%.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #854 +/- ## ========================================== + Coverage 76.25% 76.28% +0.03% ========================================== Files 329 329 Lines 31276 31308 +32 Branches 6084 6093 +9 ========================================== + Hits 23850 23884 +34 + Misses 5834 5833 -1 + Partials 1592 1591 -1 ``` | [Flag](https://app.codecov.io/gh/keras-team/keras-core/pull/854/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=keras-team) | Coverage Δ | | |---|---|---| | [keras_core](https://app.codecov.io/gh/keras-team/keras-core/pull/854/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=keras-team) | `76.19% <96.36%> (+0.03%)` | :arrow_up: | Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=keras-team#carryforward-flags-in-the-pull-request-comment) to find out more. | [Files Changed](https://app.codecov.io/gh/keras-team/keras-core/pull/854?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=keras-team) | Coverage Δ | | |---|---|---| | [keras\_core/testing/test\_case.py](https://app.codecov.io/gh/keras-team/keras-core/pull/854?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=keras-team#diff-a2VyYXNfY29yZS90ZXN0aW5nL3Rlc3RfY2FzZS5weQ==) | `86.42% <94.28%> (+1.73%)` | :arrow_up: | | [keras\_core/backend/tensorflow/numpy.py](https://app.codecov.io/gh/keras-team/keras-core/pull/854?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=keras-team#diff-a2VyYXNfY29yZS9iYWNrZW5kL3RlbnNvcmZsb3cvbnVtcHkucHk=) | `93.84% <100.00%> (+0.31%)` | :arrow_up: | | [keras\_core/layers/core/identity.py](https://app.codecov.io/gh/keras-team/keras-core/pull/854?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=keras-team#diff-a2VyYXNfY29yZS9sYXllcnMvY29yZS9pZGVudGl0eS5weQ==) | `100.00% <100.00%> (ø)` | |

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.