Commit cd46846e authored by Allen Lavoie's avatar Allen Lavoie Committed by TensorFlower Gardener
Browse files

Remove some undefined behavior in DynamicStitchOp

Zero-sized tensors ended up dereferencing and immediately taking the address of a null pointer, then not using the result. Removes the dereference to appease ubsan.

(Previously the indexing was &element(0, 0), which regardless of row/column major should map to index 0)

PiperOrigin-RevId: 211989827
parent 90d729c3
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment