Skip to content

Commit

Permalink
Avoid log spam (#7278) (#7284)
Browse files Browse the repository at this point in the history
  • Loading branch information
JackCaoG committed Jun 17, 2024
1 parent f00bd0b commit fda5828
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions torch_xla/csrc/runtime/pjrt_registry.cc
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,9 @@ InitializePjRt(const std::string& device_type) {
if (plugin) {
TF_VLOG(1) << "Initializing client for PjRt plugin " << device_type;

// Init the absl logging to avoid the log spam.
absl::InitializeLog();

std::shared_ptr<xla::KeyValueStoreInterface> kv_store = nullptr;
if (plugin->requires_xla_coordinator()) {
int local_process_rank = sys_util::GetEnvInt(
Expand Down

0 comments on commit fda5828

Please sign in to comment.