Move use of c10::string_view to std::string_view (#152509)

Eliminate use of c10::string_view in OSS.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/152509
Approved by: https://github.com/ezyang
This commit is contained in:
cyy
2025-06-25 01:57:49 +00:00
committed by PyTorch MergeBot
parent 02c7ab2f9b
commit 41910d7a94
4 changed files with 2 additions and 4 deletions

View File

@ -25,8 +25,8 @@ if_condition_template = CodeTemplate(if_condition_template_str)
selected_kernel_dtypes_h_template_str = """
#include <c10/core/ScalarType.h>
#include <c10/util/string_view.h>
#include <c10/macros/Macros.h>
#include <string_view>
namespace at {
inline constexpr bool should_include_kernel_dtype(

View File

@ -8,8 +8,8 @@
#include <c10/util/Logging.h>
#include <c10/util/string_view.h>
#include <torch/nativert/common/FileUtil.h>
#include <string>
namespace torch::nativert {

View File

@ -16,7 +16,6 @@
#include <ATen/ops/scalar_tensor.h>
#endif
#include <c10/util/string_view.h>
#include <caffe2/serialize/inline_container.h>
namespace torch::nativert {

View File

@ -8,7 +8,6 @@
#include <c10/util/Enumerate.h>
#include <c10/util/FbcodeMaps.h>
#include <c10/util/StringUtil.h>
#include <c10/util/string_view.h>
#include <torch/nativert/executor/Placement.h> // @manual
#include <torch/nativert/graph/TensorMeta.h> // @manual