Skip to content

Conversation

@xei
Copy link

@xei xei commented Sep 26, 2025

The add_weight() method call in Streaming.init used positional arguments which breaks with Keras 3.x. Changed to keyword argument to maintain compatibility with both Keras 2.x and 3.x versions.

Fixes users getting "Cannot convert ('c','o','u','n','t','e','r') to a shape" error when using TensorFlow 2.16+ with TFRS 0.7.3.

Fixes #712
Fixes #731
Fixes #748
Fixes #754
Fixes #759

The add_weight() method call in Streaming.init used positional
arguments which breaks with Keras 3.x. Changed to keyword argument to maintain compatibility with both Keras 2.x and 3.x versions.

Fixes users getting "Cannot convert ('c','o','u','n','t','e','r') to
a shape" error when using TensorFlow 2.16+ with TFRS 0.7.3.

Fixes tensorflow#712
Fixes tensorflow#731
Fixes tensorflow#748
Fixes tensorflow#754
Fixes tensorflow#759
@msburns24
Copy link

When can we expect this pull request to be completed? At the moment, the TensorFlow recommenders tutorials won't work with any FactorizedTopK metrics.

@fahrbach
Copy link

Hello, I fixed internally via #765 (same PR as yours).

@mihaimaruseac
Copy link

#765 which merged should have this fixed. Sadly, there's no autoclose of this and duplicates.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment