3 ms·
Anyone know if this shows up as an actual GPU device? The last tensorflow-macOS thing did not. If you list devices using that, you’ll see only one: CPU:0. Does
by sillysaurusx 5y ago
Anyone know if this shows up as an actual GPU device? The last tensorflow-macOS thing did not. If you list devices using that, you’ll see only one: CPU:0.
Does this give a GPU:0 device? You can check via:
import tensorflow as tf2
from pprint import pprint as pp
tf = tf2.compat.v1
sess = tf.InteractiveSession()
pp(sess.list_devices())
I’d check myself, but I’ve been so burnt by tensorflow 2 and M1 problems that I just don’t have the energy to figure out the inevitable compilation issues, and it sounds like at least one other person already has it running. Plus I’m on mobile.
- liprais 5y agoPython 3.9.4 | packaged by conda-forge | (default, May 10 2021, 22:10:52) [Clang 11.1.0 ] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> import tensorflow Init Plugin Init Graph Optimizer Init Kernel >>> tensorflow.config.list_physical_devices <function list_physical_devices at 0x128011f70> >>> tensorflow.config.list_physical_devices() [PhysicalDevice(name='/physical_device:CPU:0', device_type='CPU'), PhysicalDevice(name='/physical_device:GPU:0', device_type='GPU')]
- sillysaurusx 5y agoOhhhh snapppppp! Excitement level just shot way up. Thank you. God, it’ll be nice having a gpu for tensorflow. I’ve dreamed about this for like… a long time.
- sillysaurusx 5y agoGot it running! I posted detailed instructions here: https://news.ycombinator.com/item?id=27445555 https://news.ycombinator.com/item?id=27445555 Ahh, I've never had a local GPU before. Thank you Apple Santa Claus, whoever your team is.
- dekhn 5y ago... and it worked on linux and windows for years already.
- smoldesu 5y agoMaybe someday they'll external GPU support too, unless it's too tall of an order for Apple.