Add methods RemoveLastDims and RemoveDimRange to TensorShape. Apart from the...
Add methods RemoveLastDims and RemoveDimRange to TensorShape. Apart from the convenience, some kernels call RemoveDim multiple times, or even in a loop, which ends up being an O(dims()*k) operation instead of O(dims()). PiperOrigin-RevId: 169473109
Loading
Please sign in to comment