keras-team / tf-keras

The TensorFlow-specific implementation of the Keras API, which was the default Keras from 2019 to 2023.
Apache License 2.0
64 stars 30 forks source link

AttributeError: 'VocabWeightHandler' object has no attribute 'name' #650

Open DachuanZhao opened 3 years ago

DachuanZhao commented 3 years ago

System information.

Describe the problem. Tensorflow profiler crashes when using string categorical layer, not allowing to profile models with those layers.

Maybe the same issue

i-chaochen commented 3 years ago

The same issue happened to me.

I "fixed" it by changing the Tensorboard(histogram_freq=0), but it seems you mentioned it's a bad idea as we can't get tensorflow profiler in tensorboard.

mattdangerw commented 2 years ago

This is a known bug with some special classes we introduced for handling StaticHashTable and MutableHashTable in keras layers (TrackableWeightHandler and VocabWeightHandler). Both the classes have caused a number of issues, so I believe the best approach here would be to remove them entirely. We will need to think about the design of how best to do that.

kylemcmearty commented 2 years ago

Is there any update on this issue?

padieul commented 1 year ago

I faced the same issue when trying to integrate Tensorboard with the official Tensorflow RNN classification tutorial: https://www.tensorflow.org/text/tutorials/text_classification_rnn.

sharyar commented 11 months ago

Facing the same issue. I am not sure how to profile my model without it.