Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add space_to_batch op #104

Merged
merged 6 commits into from
Nov 10, 2020
Merged
Changes from 1 commit
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
Prev Previous commit
add odd padding and even padding test.
  • Loading branch information
XingHongChenIntel committed Nov 10, 2020
commit 1b76d3697d4ce082e9696ab7f93a2c0a45519f60
Original file line number Diff line number Diff line change
Expand Up @@ -22,16 +22,20 @@ const std::vector<std::vector<size_t>> blockShapes = {
};

const std::vector<std::vector<size_t>> pads_begins = {
{0, 0, 0, 0}
{0, 0, 0, 0},
{0, 2, 2, 0},
{0, 4, 0, 0}
};

const std::vector<std::vector<size_t>> pads_ends = {
{0, 0, 0, 0}
{0, 0, 0, 0},
{0, 2, 2, 0},
{0, 0, 4, 0},
};

const std::vector<std::vector<size_t>> inputShapes = {
{1, 2, 2, 1}, //
{1, 4, 4, 1}, //
{1, 8, 8, 1}, //
{3, 4, 4, 1}, //
};

INSTANTIATE_TEST_CASE_P(SpaceToBatchSmokeCheck, SpaceToBatchLayerTest,
Expand All @@ -43,4 +47,12 @@ INSTANTIATE_TEST_CASE_P(SpaceToBatchSmokeCheck, SpaceToBatchLayerTest,
::testing::Values(CommonTestUtils::DEVICE_PLAIDML)),
SpaceToBatchLayerTest::getTestCaseName);

INSTANTIATE_TEST_CASE_P(SpaceToBatchTfCaseCheck, SpaceToBatchLayerTest,
::testing::Combine(::testing::Values(std::vector<size_t>({1, 2, 2, 1})),
::testing::Values(std::vector<size_t>({0, 1, 1, 0})),
::testing::Values(std::vector<size_t>({0, 1, 1, 0})),
::testing::Values(std::vector<size_t>({2, 2, 4, 1})),
::testing::ValuesIn(inputPrecisions),
::testing::Values(CommonTestUtils::DEVICE_PLAIDML)),
SpaceToBatchLayerTest::getTestCaseName);
} // namespace