[RFC] Tensor Indexed Updates

18 views
Skip to first unread message

Antonio Sanchez

unread,
Oct 24, 2022, 4:12:25 PM10/24/22
to devel...@tensorflow.org
Hello everyone,

I am happy to announce that RFC: Tensor Indexed Updates is ready for review.

The feedback phase will be open until November 11, 2022. Comments are invited to the pull request linked. You can view the design doc here, and also leave comments inline on the document source.

Summary:

This proposal introduces a new python API for "updating" elements within a tensor using numpy-like indexing.
  • For immutable tensors, introduces tensor.at[indices].set(updates) to return a modified copy of the original tensor (follows the JAX syntax)
  • For tf.Variable, allows direct slice assignment, var[indices] = updates.
Thanks for your review and participation!

~Antonio
Reply all
Reply to author
Forward
0 new messages