Platform Already Registered With Name "METAL"

I was trying to install both Tensorflow for Mac OS along with the Metal plugin on my 2019 16 inch Macbook Pro. They both install successfully when using pip however when trying to import Tensorflow, I end up getting the message below. Does anyone know what might be causing this and how to fix it?

2021-07-13 18:23:39.214473: F tensorflow/c/experimental/stream_executor/stream_executor.cc:823] Non-OK-status: stream_executor::MultiPlatformManager::RegisterPlatform( std::move(cplatform)) status: Internal: platform is already registered with name: "METAL"

It looks like you don't have the correct version of tensorflow, you likely just need to update your install of tensorflow using:

python -m pip install tensorflow-macos

for reference: https://developer.apple.com/metal/tensorflow-plugin/

Tried but useless. Same problem.

Pkg version:

  • tensorflow-macos              2.5.0
  • tensorflow-metal              0.1.2

Sys Info:

  •   Model Name: MacBook Pro
  •   Model Identifier: MacBookPro13,3
  •   Processor Name: Quad-Core Intel Core i7 (2.9G Hz)
  •   Chipset Model: AMD Radeon Pro 460
Platform Already Registered With Name "METAL"
 
 
Q