[1/N] Replace c10::sv with std::sv (#139453)

Picks some safe replacements.

Pull Request resolved: https://github.com/pytorch/pytorch/pull/139453
Approved by: https://github.com/Skylion007
This commit is contained in:
cyy
2024-11-01 05:39:37 +00:00
committed by PyTorch MergeBot
parent 6ef6b3f586
commit 4a2da52137
22 changed files with 57 additions and 49 deletions

View File

@ -24,7 +24,7 @@ namespace {
struct SchemaParser {
explicit SchemaParser(const std::string& str, bool allow_typevars)
: L(std::make_shared<Source>(
c10::string_view(str),
std::string_view(str),
std::nullopt,
0,
nullptr,