Skip to content

Commit 0259700

Browse files
r-barnesfacebook-github-bot
authored andcommitted
Eliminate c10 string_utils (#138499)
Summary: Pull Request resolved: pytorch/pytorch#138499 Reviewed By: swolchok Differential Revision: D64659674 fbshipit-source-id: e4fb3074248a01b537bf4bf5c667b92cfc52df37
1 parent 087e3c1 commit 0259700

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

fbgemm_gpu/codegen/inference/embedding_forward_quantized_host_cpu.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -507,7 +507,7 @@ struct TensorQueue : torch::CustomClassHolder {
507507

508508
for (const auto index : c10::irange(queue_size)) {
509509
Tensor val;
510-
queue_[index] = dict.at(key + "/" + c10::to_string(index));
510+
queue_[index] = dict.at(key + "/" + std::to_string(index));
511511
queue_.push_back(val);
512512
}
513513
}
@@ -519,7 +519,7 @@ struct TensorQueue : torch::CustomClassHolder {
519519
dict.insert(
520520
key + "/size", torch::tensor(static_cast<int64_t>(queue_.size())));
521521
for (const auto index : c10::irange(queue_.size())) {
522-
dict.insert(key + "/" + c10::to_string(index), queue_[index]);
522+
dict.insert(key + "/" + std::to_string(index), queue_[index]);
523523
}
524524
return dict;
525525
}

0 commit comments

Comments
 (0)