Page MenuHomePhabricator

Fix linalg.dot over boolean tensors.
AbandonedPublic

Authored by jreiffers on Jul 7 2022, 11:39 AM.

Details

Reviewers
nicolasvasilache
Summary

For boolean tensors, this currently uses addi, which is inconsistent with numpy. Numpy uses saturating arithmetic.

np.array([True]) + np.array([True])

array([ True])

Diff Detail

Event Timeline

jreiffers created this revision.Jul 7 2022, 11:39 AM
jreiffers requested review of this revision.Jul 7 2022, 11:39 AM
jreiffers edited the summary of this revision. (Show Details)Jul 7 2022, 11:40 AM
jreiffers abandoned this revision.Jul 7 2022, 11:43 AM