[XLA] Give NumMappedDims() internal linkage and use a simple constant instead.
Since this constant is only used inside the implementation of SpaceToBatchConverter, it can be made local to space_to_batch_converter.cc. This avoids a potential ODR collision if some other class were to attempt to define the symbol xla::NumMappedDims, which is a fairly generic name.
[XLA] Give NumMappedDims() internal linkage and use a simple constant instead.
Since this constant is only used inside the implementation of SpaceToBatchConverter, it can be made local to space_to_batch_converter.cc. This avoids a potential ODR collision if some other class were to attempt to define the symbol xla::NumMappedDims, which is a fairly generic name.