Opened 3 years ago

Closed 3 years ago

Last modified 3 years ago

#63777 closed defect (fixed)

py*-tensorflow-metal throws errors on M1 running macOS 11

Reported by: essandess (Steve Smith) Owned by: essandess (Steve Smith)
Priority: Normal Milestone:
Component: ports Version: 2.7.1
Keywords: arm64 bigsur Cc: cjones051073 (Chris Jones)
Port: py-tensorflow-metal, py-tensorflow-macos

Description

py*-tensorflow-metal on macOS 11 M1 systems throws the error on basic model training (e.g. https://github.com/macports/macports-ports/pull/12678):

MPSGraph adamUpdateWithLearningRateTensor:beta1Tensor:beta2Tensor:epsilonTensor:beta1PowerTensor:beta2PowerTensor:valuesTensor:momentumTensor:velocityTensor:maximumVelocityTensor:gradientTensor:name:]: unrecognized selector sent to instance

We should limit installation of py*-tensorflow-metal and py*-tensorflow-macos to macOS 12+ on arm64 devices, per official documentation at https://developer.apple.com/metal/tensorflow-plugin/.

In contrast, py*-tensorflow-metal and py*-tensorflow-macos on x86_64 devices appears work fine.

See:

Change History (4)

comment:1 Changed 3 years ago by ryandesign (Ryan Carsten Schmidt)

Keywords: bigsur added; M1 tensorflow metal removed

comment:2 Changed 3 years ago by essandess (Steve Smith)

comment:3 Changed 3 years ago by essandess (Steve Smith)

Owner: set to essandess
Resolution: fixed
Status: newclosed

In d12b1c847d3f5cfc67401595cba239ac84eca0c5/macports-ports (master):

py-tensorflow-metal: Bugfix

comment:4 Changed 3 years ago by essandess (Steve Smith)

In 359f8e68811b40aedfa080e57914956ee02d04f0/macports-ports (master):

py-tensorflow-macos: Bugfix

Note: See TracTickets for help on using tickets.