[2/N] Replace c10::sv with std::sv (#139456)

Follows  #139453

Pull Request resolved: https://github.com/pytorch/pytorch/pull/139456
Approved by: https://github.com/ezyang, https://github.com/malfet
This commit is contained in:
cyy
2024-11-08 01:48:00 +00:00
committed by PyTorch MergeBot
parent 81d077cca2
commit da1e120dfd
7 changed files with 23 additions and 6 deletions

View File

@ -43,7 +43,7 @@ class SourceRangeSerializer {
int64_t store_text_and_get_index(const std::string& text_view);
std::vector<c10::IValue> texts_;
std::unordered_map<c10::string_view, int64_t> text_to_idx_;
std::unordered_map<std::string_view, int64_t> text_to_idx_;
};
SourceRange SourceRangeDeserializer::deserialize(const c10::IValue& iv) {