@@ -44,7 +44,7 @@ class OpCloneTest : public OperatorTest {
4444 // nullopt or MemoryFormat::Contiguous.
4545 Tensor out_nullopt_ret = op_clone_out (
4646 /* self=*/ input,
47- /* memory_format=*/ executorch::aten ::nullopt ,
47+ /* memory_format=*/ std ::nullopt ,
4848 /* out=*/ out_nullopt);
4949 Tensor out_contiguous_ret = op_clone_out (
5050 /* self=*/ input,
@@ -65,7 +65,7 @@ class OpCloneTest : public OperatorTest {
6565 TensorFactory<DTYPE> tf;
6666 Tensor input = tf.make (/* sizes=*/ {3 , 0 , 1 , 2 }, /* data=*/ {});
6767 Tensor out = tf.zeros ({3 , 0 , 1 , 2 });
68- op_clone_out (input, /* memory_format=*/ executorch::aten ::nullopt , out);
68+ op_clone_out (input, /* memory_format=*/ std ::nullopt , out);
6969 // check a and out share same value, but are different object
7070 EXPECT_TENSOR_EQ (input, out);
7171 }
@@ -95,8 +95,7 @@ TEST_F(OpCloneTest, MismatchedSizesDie) {
9595 Tensor input = tf.make (/* sizes=*/ {3 , 1 , 1 , 2 }, /* data=*/ {1 , 2 , 3 , 4 , 5 , 6 });
9696 Tensor out = tf.zeros ({3 , 2 , 1 , 1 });
9797 ET_EXPECT_KERNEL_FAILURE (
98- context_,
99- op_clone_out (input, /* memory_format=*/ executorch::aten::nullopt , out));
98+ context_, op_clone_out (input, /* memory_format=*/ std::nullopt , out));
10099}
101100
102101TEST_F (OpCloneTest, MismatchedTypesDie) {
@@ -106,8 +105,7 @@ TEST_F(OpCloneTest, MismatchedTypesDie) {
106105 tf_in.make (/* sizes=*/ {3 , 1 , 1 , 2 }, /* data=*/ {1 , 2 , 3 , 4 , 5 , 6 });
107106 Tensor out = tf_out.zeros ({3 , 1 , 1 , 2 });
108107 ET_EXPECT_KERNEL_FAILURE (
109- context_,
110- op_clone_out (input, /* memory_format=*/ executorch::aten::nullopt , out));
108+ context_, op_clone_out (input, /* memory_format=*/ std::nullopt , out));
111109}
112110
113111// Only contiguous memory is supported, the memory type other than nullopt or
0 commit comments