-
Notifications
You must be signed in to change notification settings - Fork 31
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
float number in randint Python 3.12 #803
Comments
@tilakrayal You didn't use python 3.12 this error occurs only with python >=3.12 and in previous versions you get warnings that calling randint with float is deprecated and support will be removed in next python versions Please try in fresh docker environment with python 3.12:
The solution would be to find all calls of .randint(...) with floats and wrap them with int(), I saw there was one place in source code where it was done but not everywhere for example: generator.randint(1, 1e9) -> generator.randint(1, int(1e9)) |
@tilakrayal are you able to create a MR with that change and release new version of tf_keras? it should be a simple change currently it's something that blocks users from using tf_keras with python 3.12 since it doesn't work with that version. |
This issue is stale because it has been open for 14 days with no activity. It will be closed if no further activity occurs. Thank you. |
I noticed there are other test fails with python 3.12 |
I noticed in the source code there are some calls of
generator.randint(1, 1e9)
1e9 is converted to float but in python 3.12 calling float in randint causes an errorSystem information.
Running with env variable: TF_USE_LEGACY_KERAS=1
Simple steps to reproduce:
Error log
The text was updated successfully, but these errors were encountered: