Skip to content
This repository has been archived by the owner on Jan 24, 2024. It is now read-only.

Add new test case of roll #1317

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions python/tests/op_mappers/test_roll_op.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,15 @@ def init_input_data(self):
self.shifts = [121, 122]


class TestRollCase7(TestRollOp):
def init_input_data(self):
self.feed_data = {
'x': self.random([10, 2, 3], 'float32'),
}
self.axis = [0, 1, 1, -2, 2, 2, 1, -1]
self.shifts = [1, 2, 3, 4, 5, 6, 7, 8]


class TestRollAxesEmpty(TestRollOp):
def set_op_attrs(self):
return {"shifts": self.shifts, "axis": []}
Expand Down