From 108b0a670235016f143cb16cfc1c528e0f3c19eb Mon Sep 17 00:00:00 2001 From: Richard Barnes Date: Sat, 19 Oct 2024 21:03:37 -0700 Subject: [PATCH] `c10::optional` -> `std::optional` in executorch/extension/llm/custom_ops/op_sdpa_aot.cpp Summary: `c10::optional` is just an alias for `std::optional`. We are removing that alias, so we need to fix all instances where it is used. Differential Revision: D64648343 --- extension/llm/custom_ops/op_sdpa_aot.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/extension/llm/custom_ops/op_sdpa_aot.cpp b/extension/llm/custom_ops/op_sdpa_aot.cpp index b129a5a3cde..5d93df4a75d 100644 --- a/extension/llm/custom_ops/op_sdpa_aot.cpp +++ b/extension/llm/custom_ops/op_sdpa_aot.cpp @@ -116,11 +116,11 @@ at::Tensor custom_sdpa_aten( const int64_t start_pos, // @lint-ignore CLANGTIDY facebook-hte-ConstantArgumentPassByValue // @lint-ignore CLANGTIDY facebook-hte-ParameterMightThrowOnCopy - const c10::optional attn_mask, + const std::optional attn_mask, const double dropout_p, const bool is_causal, // @lint-ignore CLANGTIDY facebook-hte-ParameterMightThrowOnCopy - const c10::optional scale) { + const std::optional scale) { auto output = at::empty_like(q); WRAP_TO_ATEN(custom_sdpa_out_no_context, 8) (q, k, v, start_pos, attn_mask, dropout_p, is_causal, scale, output);