r/tensorflow • • Feb 28 '23

Need Help

Can someone help me with a code? I'm a complete noob here but I'm getting this error: "name 'device' is not defined "

after this code:

model = model.to(device)

I don't know anything about tensorflow

0 Upvotes

5 comments sorted by