ponder-lab / Hybridize-Functions-Refactoring

Refactorings for optimizing imperative TensorFlow clients for greater efficiency.
Eclipse Public License 2.0
0 stars 0 forks source link

Python functions must return zero or more `Tensor`s or `ExtensionType`s or `None` values #367

Open khatchad opened 3 days ago

khatchad commented 3 days ago
FAILED tests/keras/test_factorized_top_k.py::TestFactorizedTopK::test_factorized_topk_metrics0 - TypeError: To be compatible with tf.function, Python functions must return zero or more Tensors or ExtensionTypes or None values; in compilation of <function FactorizedTopK.update_state at 0x7508542b2830>, found return value of type Operation, which is not a Tensor or ExtensionType.

https://www.tensorflow.org/guide/extension_type

https://g.co/gemini/share/69dac2e125e9