Add a more efficient constructor for scalar `Tensor` objects in host memory.
[tf.data] Optimize the creation of tensors in `tf.data.Dataset.range()`. This change improves the range benchmark from 148.7 ns/element to 122.4 ns/element. PiperOrigin-RevId: 220279090
Loading
Please sign in to comment