@@ -24,7 +24,7 @@ using ::executorch::runtime::Error;
2424using ::executorch::runtime::KernelRuntimeContext;
2525
2626template <typename T>
27- using optional = ::executorch::aten ::optional<T>;
27+ using optional = std ::optional<T>;
2828/* ScalarType in Executorch do not have support for below data types.
2929 * So, creating a placeholder for these data types. Once, ScalarTypes is
3030 * updated to have support for below data types, these can be removed and
@@ -51,7 +51,7 @@ void check_dequantize_per_tensor_args(
5151 int64_t quant_min,
5252 int64_t quant_max,
5353 ScalarType dtype,
54- ::executorch::aten ::optional<ScalarType>& out_dtype,
54+ std ::optional<ScalarType>& out_dtype,
5555 Tensor& out) {
5656 ET_CHECK_MSG (
5757 input.scalar_type () == ScalarType::Byte ||
@@ -93,7 +93,7 @@ Tensor& dequantize_impl(
9393 float * scale_data,
9494 int * zero_point_data,
9595 int * axis,
96- ::executorch::aten ::optional<ScalarType> out_dtype) {
96+ std ::optional<ScalarType> out_dtype) {
9797 const ::executorch::aten::ArrayRef<Tensor::SizesType> input_size =
9898 input.sizes ();
9999
@@ -260,8 +260,8 @@ Tensor& dequantize_impl(
260260 }
261261 }
262262
263- ::executorch::aten:: optional<::executorch::aten::ArrayRef<int64_t >>
264- optional_dim_list{ ::executorch::aten::ArrayRef<int64_t >{
263+ std:: optional<::executorch::aten::ArrayRef<int64_t >> optional_dim_list{
264+ ::executorch::aten::ArrayRef<int64_t >{
265265 dims, size_t (input.dim () - 1 )}};
266266
267267// Actual dequantization logic
@@ -466,8 +466,8 @@ Tensor& dequantize_impl(
466466 }
467467 }
468468
469- ::executorch::aten:: optional<::executorch::aten::ArrayRef<int64_t >>
470- optional_dim_list{ ::executorch::aten::ArrayRef<int64_t >{
469+ std:: optional<::executorch::aten::ArrayRef<int64_t >> optional_dim_list{
470+ ::executorch::aten::ArrayRef<int64_t >{
471471 dims, size_t (input.dim () - 1 )}};
472472
473473// Actual dequantization logic
@@ -600,7 +600,7 @@ Tensor& dequantize_per_tensor_tensor_args_out(
600600 int64_t quant_min,
601601 int64_t quant_max,
602602 ScalarType dtype,
603- ::executorch::aten ::optional<ScalarType> out_dtype,
603+ std ::optional<ScalarType> out_dtype,
604604 Tensor& out) {
605605#ifdef OP_ARG_CHECK
606606 ET_CHECK_MSG (
@@ -639,12 +639,12 @@ Tensor& dequantize_per_channel_out(
639639 KernelRuntimeContext& context,
640640 const Tensor& input,
641641 const Tensor& scale,
642- const ::executorch::aten ::optional<Tensor>& opt_zero_points,
642+ const std ::optional<Tensor>& opt_zero_points,
643643 int64_t axis,
644644 int64_t quant_min,
645645 int64_t quant_max,
646646 ScalarType dtype,
647- ::executorch::aten ::optional<ScalarType> out_dtype,
647+ std ::optional<ScalarType> out_dtype,
648648 Tensor& out) {
649649 if (axis < 0 ) {
650650 axis += executorch::runtime::nonzero_dim (input);
0 commit comments