Commit 8107a1f7 authored by Adria Puigdomenech's avatar Adria Puigdomenech Committed by TensorFlower Gardener
Browse files

Add batch_gather that assumes a series of leading (dense) dimensions.

This operation computes:

 result[i1, ..., in] = params[i1, ..., in-1, indices[i1, ..., in]]

That is, it assumes that `params` and `indices` have n-1 leading dense dimensions, followed by a sparse dimensions over which we want to gather.

PiperOrigin-RevId: 208836509
parent 83b8a3c9
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment