-
Notifications
You must be signed in to change notification settings - Fork 9
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-metal
is not supported, errors when using tf with GPU on a mac - Some of the examples on doc does not work
#87
Comments
How did you install tensorflow? It should not say that the GPU is available if it is not true. I'm also using a M1 mac and, indeed, What version of python are you using? (I need to update that issue template!) Also, since it is probably important in a mac, are you using python from the system, brew or conda? |
Hi @scarlehoff
By following this link.
im using python 3.9.18
I tried to set
as well as
But non of them helped. |
Ah... I see, the problem is A possible solution is to do at the beginning of the code:
Basically the opposite strategy of what you did, telling tf "your GPUs are... None" :P However, I'd like to understand why M1 doesn't work. As long as you are not using complex types it should be fine. Maybe we are doing something that btw, the example itself in the docs is now wrong, it should be |
tensorflow-metal
is not supported, errors when using tf with GPU on a mac - Some of the examples on doc does not work
Aha! Thanks, Juan; that indeed fixes the issue! |
Description
Hi, I'm trying to execute some of the examples that you have on your documentation. However, it's having some device-related issues. I don't have NVIDIA GPU (it's an M1 Mac), but it automatically sets the device to GPU even though the device seems to be set to
False
.Is it possible to change the use to CPU instead? I couldn't find a set device function in Vegasflow. Should it be done through tensorflow?
Thanks for your help.
Cheers
Code example
Additional information
Traceback
The text was updated successfully, but these errors were encountered: