Revert "Eliminate c10::guts::to_string (#108480)"

This reverts commit 4146be192ead477360a2763c5005e46a9485c3bf.

Reverted https://github.com/pytorch/pytorch/pull/108480 on behalf of https://github.com/huydhn due to Sorry for reverting this, but this is needed to keep trunk green after https://github.com/pytorch/pytorch/pull/108479 was reverted.  Both will need to be relanded ([comment](https://github.com/pytorch/pytorch/pull/108480#issuecomment-1707067595))
This commit is contained in:
PyTorch MergeBot
2023-09-05 18:04:53 +00:00
parent 5b31a41841
commit 8da04e023e
44 changed files with 225 additions and 164 deletions

View File

@ -564,7 +564,7 @@ mobile::Module _load_for_mobile_impl(
// Add model_name and model_size to metadata_map
extra_files.insert(std::make_pair("model_name", result.name()));
extra_files.insert(
std::make_pair("model_size", std::to_string(model_size)));
std::make_pair("model_size", c10::guts::to_string(model_size)));
metadata_map = observer->processMetadataFromExtra(extra_files);
observer->onExitLoadModel(instance_key, metadata_map);
}