Commit b2702807 authored by Richard Wei's avatar Richard Wei Committed by TensorFlower Gardener
Browse files

In the Swift API, deprecate `a.dot(b)` and `?` to `matmul(a, b)` to accurately...

In the Swift API, deprecate `a.dot(b)` and `?` to `matmul(a, b)` to accurately reflect the operator?s mathematical properties and make it familiar to TensorFlow users. Currently the deprecation is a warning - when we update tensorflow/swift-models, I'll start another CL to remove it completely.

Previously `dot` was chosen over `matmul` because of naming convention concerns (acronyms aren?t common in Swift) and that we wanted to make it short (so full names like `a.matrixMultiplied(by: b)` isn?t acceptable). Beyond these concerns, `matmul` is really a word of art and thus should be preferred.

The ? operator often denotes outer product and Kronecker product. So it's removed, too.

PiperOrigin-RevId: 198920621
parent 03d67b43
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment