File tree Expand file tree Collapse file tree 1 file changed +5
-11
lines changed Expand file tree Collapse file tree 1 file changed +5
-11
lines changed Original file line number Diff line number Diff line change @@ -67,18 +67,18 @@ namespace aten {
6767
6868using TensorShapeDynamism = executorch::runtime::TensorShapeDynamism;
6969
70+ using std::nullopt ;
71+ using std::nullopt_t ;
72+ using std::optional;
73+ using std::string_view;
74+
7075#ifdef USE_ATEN_LIB
7176
7277using Tensor = at::Tensor;
7378using TensorList = at::TensorList;
7479using TensorImpl = at::TensorImpl;
75- using string_view = std::string_view;
7680template <typename T>
7781using ArrayRef = c10::ArrayRef<T>;
78- template <typename T>
79- using optional = std::optional<T>;
80- using nullopt_t = std::nullopt_t ;
81- using std::nullopt ;
8282using ScalarType = at::ScalarType;
8383using Scalar = c10::Scalar;
8484using MemoryFormat = c10::MemoryFormat;
@@ -126,14 +126,8 @@ inline ssize_t compute_numel(const SizesType* sizes, ssize_t dim) {
126126
127127using Tensor = torch::executor::Tensor;
128128using TensorImpl = torch::executor::TensorImpl;
129- using string_view = torch::executor::string_view;
130129template <typename T>
131130using ArrayRef = torch::executor::ArrayRef<T>;
132- template <typename T>
133- using optional = torch::executor::optional<T>;
134- using nullopt_t = torch::executor::nullopt_t ;
135- // NOLINTNEXTLINE(facebook-hte-NamespaceScopedStaticDeclaration)
136- using std::nullopt ;
137131using ScalarType = torch::executor::ScalarType;
138132using TensorList = ArrayRef<Tensor>;
139133using Scalar = torch::executor::Scalar;
You can’t perform that action at this time.
0 commit comments