Skip to content

Commit dacd0a2

Browse files
r-barnesfacebook-github-bot
authored andcommitted
c10::optional -> std::optional
Summary: `c10::optional` is an alias for `std::optional`. Let's remove the alias and use the real thing. Reviewed By: palmje Differential Revision: D63409367 fbshipit-source-id: 47ed98b55739804611a79c19ffd1a91a492f21c5
1 parent 2fff171 commit dacd0a2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

extension/llm/custom_ops/op_sdpa_aot.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,11 +60,11 @@ at::Tensor sdpa_with_kv_cache_aten(
6060
const int64_t seq_len,
6161
// @lint-ignore CLANGTIDY facebook-hte-ConstantArgumentPassByValue
6262
// @lint-ignore CLANGTIDY facebook-hte-ParameterMightThrowOnCopy
63-
const c10::optional<at::Tensor> attn_mask,
63+
const std::optional<at::Tensor> attn_mask,
6464
const double dropout_p,
6565
const bool is_causal,
6666
// @lint-ignore CLANGTIDY facebook-hte-ParameterMightThrowOnCopy
67-
const c10::optional<double> scale) {
67+
const std::optional<double> scale) {
6868
auto output = at::empty_like(q_projected);
6969
WRAP_TO_ATEN(sdpa_with_kv_cache_out_no_context, 11)
7070
(q_projected,

0 commit comments

Comments
 (0)