Commit 88483960 authored by Yunxing Dai's avatar Yunxing Dai Committed by TensorFlower Gardener
Browse files

Reuse parameter buffer if the input parameter has an output aliasing.

Most of the time We assume parameters are readonly. However if a parameter is aliased with an output, we can safely assume it is writable (its content will be overwritten by output anyway).

In the future, we can also add options in our client API to allow user explicitly set a parameter to be writable.

PiperOrigin-RevId: 230621258
parent 7a28fb4d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment