Skip to content

Commit

Permalink
Revert the test of aten::_scaled_dot_product_efficient_attention (#1853)
Browse files Browse the repository at this point in the history
Revert it back to the original test. We can revisit and secure the test
when we have spare time.
  • Loading branch information
titaiwangms authored Sep 4, 2024
1 parent 6b0ce2a commit 6071f8d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tests/function_libs/torch_lib/extra_opinfo.py
Original file line number Diff line number Diff line change
Expand Up @@ -1325,7 +1325,6 @@ def sample_inputs__scaled_dot_product_efficient_attention(

dim_4_q_shape = (batch, num_heads, seq_q, head_dim)
dim_4_kv_shape = (batch, num_heads, seq_kv, head_dim)
shape_attn_bias = (batch, num_heads, seq_q, seq_kv)

qkv_shapes = [(dim_4_q_shape, dim_4_kv_shape)]

Expand All @@ -1339,7 +1338,7 @@ def sample_inputs__scaled_dot_product_efficient_attention(
make(shape_q),
make(shape_kv),
make(shape_kv),
attn_bias=make(shape_attn_bias),
attn_bias=None, # TODO: Add attn_bias
is_causal=is_causal,
dropout_p=dropout_p,
compute_log_sumexp=compute_log_sumexp,
Expand Down

0 comments on commit 6071f8d

Please sign in to comment.