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

Constant-fold GetDimensionSize ops in XLABuilder.

This CL implements constant-folding for GetDimensionSize ops if there is no dynamic dimension.

- If the operand of GetDimensionSize is constant dimension, consider GetDimensionSize as constant.

- Replace GetDimensionSize with a constant instruction in the constant subgraph for constant folding.

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