New tensorflow-macos install instructions are bad

The new installation instructions for tensorflow at https://developer.apple.com/metal/tensorflow-plugin/ don't work.

  1. The Conda script name is wrong. The old instructions would share a download link to a script with the same names as in the example shell instructions
  2. The conda environment now installs 3.9 instead of 3.10, which is behavior that was changed without documentation.
  3. Tensorflow cannot be imported because it is compiled against a different version of numpy than is installed in the downloadable conda environment.
  4. A manual, python -m pip install --upgrade numpy is required to run the test script.

The test script throws several warnings but works after the numpy upgrade.

  • UserWarning: "sparse_categorical_crossentropy received from_logits=True, but the output argument was produced by a Softmax activation and thus does not represent logits. Was this intended?

Further issues may be related to the M1 Ultra.

  • Could not identify NUMA node of platform GPU ID 0, defaulting to 0. Your kernel may not have been built with NUMA support.
  • Failed to get CPU frequency: 0 Hz

My experiment was totally isolated while unboxing a new Mac Studio. I installed Xcode command line tools, then went to the developer documentation linked before, and bam.

New tensorflow-macos install instructions are bad
 
 
Q