Skip to content

Commit 1ca7b61

Browse files
factnntengqm
andauthored
Apply suggestions from code review
Co-authored-by: Qiming Teng <tengqm@outlook.com> Signed-off-by: Zang Peiyu <166481866+factnn@users.noreply.github.com>
1 parent 91fede8 commit 1ca7b61

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

tests/test_feature_dropout.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
@pytest.mark.parametrize("shape", FEATURE_DROPOUT_SHAPES)
1818
@pytest.mark.parametrize("p", [0.3, 0.5, 0.7])
1919
@pytest.mark.parametrize("dtype", FLOAT_DTYPES)
20-
def test_accuracy_feature_dropout(shape, p, dtype):
20+
def test_feature_dropout(shape, p, dtype):
2121
inp = torch.randn(shape, dtype=dtype, device=flag_gems.device)
2222
with flag_gems.use_gems():
2323
res_out = torch.feature_dropout(inp, p, True)
@@ -49,7 +49,7 @@ def test_accuracy_feature_dropout(shape, p, dtype):
4949
@pytest.mark.feature_dropout
5050
@pytest.mark.parametrize("shape", FEATURE_DROPOUT_SHAPES)
5151
@pytest.mark.parametrize("dtype", FLOAT_DTYPES)
52-
def test_accuracy_feature_dropout_no_train(shape, dtype):
52+
def test_feature_dropout_no_train(shape, dtype):
5353
inp = torch.randn(shape, dtype=dtype, device=flag_gems.device)
5454
with flag_gems.use_gems():
5555
res_out = torch.feature_dropout(inp, 0.5, False)
@@ -80,7 +80,7 @@ def test_accuracy_feature_dropout_p_one(shape, dtype):
8080
@pytest.mark.parametrize("shape", FEATURE_DROPOUT_SHAPES)
8181
@pytest.mark.parametrize("p", [0.3, 0.5])
8282
@pytest.mark.parametrize("dtype", FLOAT_DTYPES)
83-
def test_accuracy_feature_dropout_inplace(shape, p, dtype):
83+
def test_feature_dropout_inplace(shape, p, dtype):
8484
inp = torch.randn(shape, dtype=dtype, device=flag_gems.device)
8585
inp_clone = inp.clone()
8686
with flag_gems.use_gems():

0 commit comments

Comments
 (0)