Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add_loss error with latest TF version #38

Open
Will-Wildmon opened this issue Aug 22, 2024 · 0 comments
Open

add_loss error with latest TF version #38

Will-Wildmon opened this issue Aug 22, 2024 · 0 comments

Comments

@Will-Wildmon
Copy link

Hi,

Many thanks for your work on this project, it's greatly appreciated.
Just to let you know, I am getting the following error when using this package with the latest version of TensorFlow:


ValueError Traceback (most recent call last)
in <cell line: 1>()

3 frames
701
702 # Adds the loss automatically
--> 703 self.add_loss(self.sparsity_coefficient * entropy_loss)
704
705 # Visualization of the aggregated feature importances

ValueError: Exception encountered when calling TabNet.call().

add_loss() can only be called from inside build() or call(), on a tensor input. Received invalid value: 0.0

Arguments received by TabNet.call():
• inputs=tf.Tensor(shape=(None, 14), dtype=float32)
• training=True

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant