mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-20 12:54:11 +08:00
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:
@ -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(
|
||||
|
@ -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 {
|
||||
|
||||
|
@ -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 {
|
||||
|
@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user