Training Custom Data on Mac

What are the steps to train custom data on a Mac?

I referred to the advice here, but am getting a ‘mutex lock’ error.

Training requires lots of computational power, and there’s no CUDA support anymore on Mac from TensorFlow, so you might not even want to do that. However, without more info than “mutex lock”, there’s no help anyone can provide.

I think I have the similar problem. The error I am getting is:
libc++abi.dylib: terminating with uncaught exception of type std::__1::system_error: mutex lock failed: Invalid argument