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 {
67
67
68
68
using TensorShapeDynamism = executorch::runtime::TensorShapeDynamism;
69
69
70
+ using std::nullopt;
71
+ using std::nullopt_t ;
72
+ using std::optional;
73
+ using std::string_view;
74
+
70
75
#ifdef USE_ATEN_LIB
71
76
72
77
using Tensor = at::Tensor;
73
78
using TensorList = at::TensorList;
74
79
using TensorImpl = at::TensorImpl;
75
- using string_view = std::string_view;
76
80
template <typename T>
77
81
using 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;
82
82
using ScalarType = at::ScalarType;
83
83
using Scalar = c10::Scalar;
84
84
using MemoryFormat = c10::MemoryFormat;
@@ -126,14 +126,8 @@ inline ssize_t compute_numel(const SizesType* sizes, ssize_t dim) {
126
126
127
127
using Tensor = torch::executor::Tensor;
128
128
using TensorImpl = torch::executor::TensorImpl;
129
- using string_view = torch::executor::string_view;
130
129
template <typename T>
131
130
using 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;
137
131
using ScalarType = torch::executor::ScalarType;
138
132
using TensorList = ArrayRef<Tensor>;
139
133
using Scalar = torch::executor::Scalar;
You can’t perform that action at this time.
0 commit comments