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

tensorflow-addons-0.14.0 or higher? #10

Open
cmclean5 opened this issue Apr 19, 2022 · 3 comments
Open

tensorflow-addons-0.14.0 or higher? #10

cmclean5 opened this issue Apr 19, 2022 · 3 comments

Comments

@cmclean5
Copy link

Dear Reader,

I have tensorflow version 2.6 running on a M1 mac, and have been using it through R + Keras API in an analysis. I would also like to use the tensorflow-addons package, however I don't think I can use the given version, i.e. 0.10.0, in my analysis? I use wonder if there is a way to use the tensorflow-addons-0.10.0 package in my current setup, or do I have to down grade my tensorflow version to 2.2?

Kindest Regards,
Colin.

@cmclean5
Copy link
Author

Cool, so it works with the setup I have. Running the example on the README page I found (with my setup) an issue using optimizer_radam()...

""
Error in py_call_impl(callable, dots$args, dots$keywords) :
TypeError: type of argument "total_steps" must be int; got float instead
""
... I'm not passing the parameter "total_steps" a value, so might be internal? But I got the full example working by just using optimizer_adam()

Cheers,
Colin.

@turgut090
Copy link
Member

turgut090 commented Apr 20, 2022

Hi could you pass this argument manually and set it as integer, please?
E.g. total_steps = as.integer(0)
If it works, I will fix that with PR

@cmclean5
Copy link
Author

Hiya,

Yeah the example given in the README now works, for my setup away, when specifying total_steps = as.integer(0) in function optimizer_radam.

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

2 participants