[Reland] Elimates c10::guts::to_string (#108748)

Reland of PR #108480, after relanding another blocking PR.

Pull Request resolved: https://github.com/pytorch/pytorch/pull/108748
Approved by: https://github.com/huydhn
This commit is contained in:
cyy
2023-09-07 13:35:17 +00:00
committed by PyTorch MergeBot
parent c887309437
commit e4f3e5434f
45 changed files with 185 additions and 242 deletions

View File

@ -508,7 +508,7 @@ RangeValue::RangeValue(
if (!typ->cast<IntType>()) {
throw ErrorReport(loc)
<< "all inputs of range must be ints, found " << typ->repr_str()
<< " in argument " << c10::guts::to_string(i);
<< " in argument " << std::to_string(i);
}
}