Skip to content

Commit

Permalink
corrected issue accessing factorized top-k counter, described here: t…
Browse files Browse the repository at this point in the history
  • Loading branch information
messiest committed Oct 22, 2024
1 parent 685694e commit 27b1e6b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tensorflow_recommenders/layers/factorized_top_k.py
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,7 @@ def __init__(self,
self._num_parallel_calls = num_parallel_calls
self._sorted = sorted_order

self._counter = self.add_weight("counter", dtype=tf.int32, trainable=False)
self._counter = self.add_weight(name="counter", dtype=tf.int32, trainable=False)

def index_from_dataset(
self,
Expand Down

0 comments on commit 27b1e6b

Please sign in to comment.