MacBook Pro 2021 cannot find mlcompute module

Hi,

I met the same issues that posted here: https://developer.apple.com/forums/thread/684263?login=true&page=1#693284022

My mac also cannot find mlcompute module.

Unlike the previous question, I wanna use CPU instead of GPU during training.

I've tried a bunch of methods that I can easily find online, can anyone help me address this? is it a tensorflow-macos or tensorflow-metal bug?

Answered by dkjdjdfdskln in 693312022

tensorflow version: 2.6.0

tensorflow-macos somehow cannot be found too, so I installed this package by SYSTEM_VERSION_COMPAT=0 python -m pip install tensorflow-macos. similarly for tensorflow-metal

Accepted Answer

tensorflow version: 2.6.0

tensorflow-macos somehow cannot be found too, so I installed this package by SYSTEM_VERSION_COMPAT=0 python -m pip install tensorflow-macos. similarly for tensorflow-metal

I posted this question again because I accepted my own "answers" by mistake. I cannot find a way to delete this post.

MacBook Pro 2021 cannot find mlcompute module
 
 
Q