-
Notifications
You must be signed in to change notification settings - Fork 55
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
[BUG] - Error when using tf.data.Dataset on metrics #102
Comments
Any progress on that? I am facing the same issue |
Thanks for your comment @adubowski, @Agustin-Picard ! Don't forget to close the issue if it works for you :) |
Hi @fel-thomas, thank you for looking into it! I am afraid it is not completely fixed yet though, as the metrics'
|
Select the modules to which the bug refers:
Describe the bug
Passing a
tf.data.Dataset
to metrics constructors derives into the program incorrectly accessing anelement_spec
of the aforementioned dataset as if it were a list when it is not the case.Screenshots
Desktop (please complete the following information):
To Reproduce
Expected behavior
I would expect the metric to be computed, but whilst instantiating the
Deletion
object, the constructor attempts to figure out the shapes of the inputs of the individual points of atf.data.Dataset
. Whilst typically straight-forward, a simple subscript bug appears, probably stemming from a incorrectly treated edge case.Additional context
The property
element_spec
of a dataset is not a list, and thus, the subscript is unnecessary for the desired function.The text was updated successfully, but these errors were encountered: