by sillysaurusx · 5y ago · 0 comments
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.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')]
God, it’ll be nice having a gpu for tensorflow. I’ve dreamed about this for like… a long time.
Ahh, I've never had a local GPU before. Thank you Apple Santa Claus, whoever your team is.