Skip to content

Commit 4728062

Browse files
kluckeGoogle-ML-Automation
authored andcommitted
Use absl::string_view instead of std::string_view as some environments (e.g. Android) don't provide std::string_view.
PiperOrigin-RevId: 707279390
1 parent 09bc536 commit 4728062

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

xla/python/pjrt_ifrt/pjrt_client.cc

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ limitations under the License.
2222
#include <memory>
2323
#include <optional>
2424
#include <string>
25-
#include <string_view>
2625
#include <tuple>
2726
#include <utility>
2827
#include <variant>
@@ -466,7 +465,7 @@ MakePjRtDevicesFromGlobalTopology(PjRtClient* client,
466465
int64_t slice_index = -1;
467466
if (!node.boot_id().empty()) {
468467
// Every new boot_id seen is treated as a new host/slice.
469-
std::string_view boot_id = node.boot_id();
468+
absl::string_view boot_id = node.boot_id();
470469
auto [it, inserted] =
471470
boot_id_to_slice_index.try_emplace(boot_id, next_slice_index);
472471
slice_index = it->second;

0 commit comments

Comments
 (0)