@@ -32,19 +32,19 @@ namespace runtime {
32
32
namespace testing {
33
33
// Provides access to private TensorInfo methods.
34
34
class TensorInfoTestFriend final {
35
- public:
35
+ public:
36
36
ET_NODISCARD static TensorInfo get (
37
- Span<const int32_t > sizes,
38
- Span<const uint8_t > dim_order,
39
- executorch::aten::ScalarType scalar_type,
40
- const bool is_memory_planned,
41
- executorch::aten::string_view name) {
37
+ Span<const int32_t > sizes,
38
+ Span<const uint8_t > dim_order,
39
+ executorch::aten::ScalarType scalar_type,
40
+ const bool is_memory_planned,
41
+ executorch::aten::string_view name) {
42
42
return TensorInfo (
43
- Span<const int32_t >(sizes.data (), sizes.size ()),
44
- Span<const uint8_t >(dim_order.data (), dim_order.size ()),
45
- scalar_type,
46
- is_memory_planned,
47
- name);
43
+ Span<const int32_t >(sizes.data (), sizes.size ()),
44
+ Span<const uint8_t >(dim_order.data (), dim_order.size ()),
45
+ scalar_type,
46
+ is_memory_planned,
47
+ name);
48
48
}
49
49
};
50
50
} // namespace testing
@@ -199,16 +199,17 @@ TEST_F(MethodMetaTest, TensorInfoSizeOverflow) {
199
199
std::numeric_limits<int32_t >::max (),
200
200
std::numeric_limits<int32_t >::max (),
201
201
};
202
-
202
+
203
203
// Create a minimal dim_order
204
204
std::vector<uint8_t > dim_order = {0 , 1 , 2 , 3 };
205
-
206
- // Create a TensorInfo with the overflow sizes and expect it to fail.
207
- ET_EXPECT_DEATH (executorch::runtime::testing::TensorInfoTestFriend::get (
208
- Span<const int32_t >(overflow_sizes.data (), overflow_sizes.size ()),
209
- Span<const uint8_t >(dim_order.data (), dim_order.size ()),
210
- executorch::aten::ScalarType::Float,
211
- false , // is_memory_planned
212
- executorch::aten::string_view{nullptr , 0 })," " );
213
205
206
+ // Create a TensorInfo with the overflow sizes and expect it to fail.
207
+ ET_EXPECT_DEATH (
208
+ executorch::runtime::testing::TensorInfoTestFriend::get (
209
+ Span<const int32_t >(overflow_sizes.data (), overflow_sizes.size ()),
210
+ Span<const uint8_t >(dim_order.data (), dim_order.size ()),
211
+ executorch::aten::ScalarType::Float,
212
+ false , // is_memory_planned
213
+ executorch::aten::string_view{nullptr , 0 }),
214
+ " " );
214
215
}
0 commit comments