Revert "fix gpt2 with empty prompt" (#3101)

This commit is contained in:
chenyu
2024-01-12 14:27:41 -05:00
committed by GitHub
parent 1d7f01bc6d
commit ca46d3541b
2 changed files with 3 additions and 9 deletions

View File

@@ -55,9 +55,6 @@ class TestSymbolicOps(unittest.TestCase):
# symbolic shape dropout is not supported
self.test_attention(dropout_p=0.5)
def test_attention_pos_0_sz_0(self):
Attention(128, 8)(Tensor.ones(1, 0, 128), Variable("start_pos", 0, 128).bind(0), None)
def test_attention_pos_0_sz_1(self):
Attention(128, 8)(Tensor.ones(1, 1, 128), Variable("start_pos", 0, 128).bind(0), None)