Skip to content

Commit

Permalink
change test file.
Browse files Browse the repository at this point in the history
  • Loading branch information
cccddd77 committed May 11, 2024
1 parent 351e0e5 commit d79cda1
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions python/oneflow/test/modules/test_fused_rotary_embedding.py
Original file line number Diff line number Diff line change
Expand Up @@ -1387,7 +1387,7 @@ def test_fused_rotary_embedding_op_plane(test_case):
args_dict = OrderedDict()
args_dict["test_fun"] = [_test_plane]
# args_dict["x_layout"] = ["MB(H3K)"]
args_dict["x_layout"] = ["BMHK", "MB(HK)"] # TODO: MB(H3K) bug;
args_dict["x_layout"] = ["MB(HK)"] # TODO: MB(H3K) bug;
args_dict["mode"] = ["plane"]
args_dict["base"] = [1e1]
args_dict["rotary_size"] = [4, 8]
Expand All @@ -1401,7 +1401,6 @@ def test_fused_rotary_embedding_op_plane(test_case):
for arg in GenArgList(args_dict):
arg[0](test_case, *arg[1:])

""" TODO: interval mode grad kernel
def test_fused_rotary_embedding_op_interval_2d(test_case):
args_dict = OrderedDict()
args_dict["test_fun"] = [_test_with_position,
Expand All @@ -1420,16 +1419,14 @@ def test_fused_rotary_embedding_op_interval_2d(test_case):

for arg in GenArgList(args_dict):
arg[0](test_case, *arg[1:])
"""

""" TODO: interval mode grad kernel
def test_fused_rotary_embedding_op_interval_1d(test_case):
args_dict = OrderedDict()
args_dict["test_fun"] = [
#_test_without_position_sinuous,
_test_without_position_sinuous,
_test_without_position,
#_test_with_position,
#_test_with_position_sinuous,
_test_with_position,
_test_with_position_sinuous,
]
args_dict["x_layout"] = ["BMHK"]
args_dict["mode"] = ["interval"]
Expand All @@ -1444,7 +1441,6 @@ def test_fused_rotary_embedding_op_interval_1d(test_case):

for arg in GenArgList(args_dict):
arg[0](test_case, *arg[1:])
"""


if __name__ == "__main__":
Expand Down

0 comments on commit d79cda1

Please sign in to comment.