-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Labels
bugSomething isn't workingSomething isn't workingpreconditionsRefactoring preconditions need to be added.Refactoring preconditions need to be added.
Description
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
tf.functionhas certain restrictions on what types of values Python functions can return.tf.functiondecorated functions can only return:- Zero or more
Tensorobjects (the core data structure in TensorFlow). - Zero or more
ExtensionTypeobjects (certain custom TensorFlow types). - None.
- Zero or more
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingpreconditionsRefactoring preconditions need to be added.Refactoring preconditions need to be added.