-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Thiago Crepaldi
committed
Aug 2, 2022
1 parent
4cfde71
commit 72e056c
Showing
24 changed files
with
140 additions
and
60 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
// Copyright (c) Microsoft Corporation. All rights reserved. | ||
// Licensed under the MIT License. | ||
|
||
#include "gtest/gtest.h" | ||
#include "test/providers/provider_test_utils.h" | ||
#include "core/util/math.h" | ||
|
||
namespace onnxruntime { | ||
namespace test { | ||
|
||
TEST(Col2ImContribOpTest, simple) { | ||
OpTester test("Col2Im", 1, kMSDomain); | ||
|
||
test.AddAttribute("strides", std::vector<int64_t>{1, 1}); | ||
test.AddAttribute("dilations", std::vector<int64_t>{1, 1}); | ||
test.AddAttribute("pads", std::vector<int64_t>{0, 0, 0, 0}); | ||
|
||
test.AddInput<float>("input", {1, 5, 5}, std::vector<float>{1.f, 6.f, 11.f, 16.f, 21.f, 2.f, 7.f, 12.f, 17.f, 22.f, 3.f, 8.f, 13.f, 18.f, 23.f, 4.f, 9.f, 14.f, 19.f, 24.f, 5.f, 0.f, 15.f, 20.f, 25.f}); | ||
test.AddInput<int64_t>("image_shape", {2}, std::vector<int64_t>{5, 5}); | ||
test.AddInput<int64_t>("block_shape", {2}, std::vector<int64_t>{1, 5}); | ||
|
||
test.AddOutput<float>("output", {1, 1, 5, 5}, std::vector<float>{1.f, 2.f, 3.f, 4.f, 5.f, 6.f, 7.f, 8.f, 9.f, 10.f, 11.f, 12.f, 13.f, 14.f, 15.f, 16.f, 17.f, 18.f, 19.f, 20.f, 21.f, 22.f, 23.f, 24.f, 25.f}); | ||
test.Run(); | ||
} | ||
|
||
|
||
} // namespace test | ||
} // namespace onnxruntime |
Binary file added
BIN
+117 Bytes
onnxruntime/test/python/testdata/node/test_col2im/test_data_set_0/input_0.pb
Binary file not shown.
Binary file added
BIN
+35 Bytes
onnxruntime/test/python/testdata/node/test_col2im/test_data_set_0/input_1.pb
Binary file not shown.
Binary file added
BIN
+35 Bytes
onnxruntime/test/python/testdata/node/test_col2im/test_data_set_0/input_2.pb
Binary file not shown.
Binary file added
BIN
+120 Bytes
onnxruntime/test/python/testdata/node/test_col2im/test_data_set_0/output_0.pb
Binary file not shown.
Binary file added
BIN
+498 Bytes
onnxruntime/test/python/testdata/node/test_col2im_5d/test_data_set_0/input_0.pb
Binary file not shown.
Binary file added
BIN
+43 Bytes
onnxruntime/test/python/testdata/node/test_col2im_5d/test_data_set_0/input_1.pb
Binary file not shown.
Binary file added
BIN
+43 Bytes
onnxruntime/test/python/testdata/node/test_col2im_5d/test_data_set_0/input_2.pb
Binary file not shown.
Binary file added
BIN
+503 Bytes
onnxruntime/test/python/testdata/node/test_col2im_5d/test_data_set_0/output_0.pb
Binary file not shown.
Binary file added
BIN
+97 Bytes
onnxruntime/test/python/testdata/node/test_col2im_dilations/test_data_set_0/input_0.pb
Binary file not shown.
Binary file added
BIN
+35 Bytes
onnxruntime/test/python/testdata/node/test_col2im_dilations/test_data_set_0/input_1.pb
Binary file not shown.
Binary file added
BIN
+35 Bytes
onnxruntime/test/python/testdata/node/test_col2im_dilations/test_data_set_0/input_2.pb
Binary file not shown.
Binary file added
BIN
+165 Bytes
onnxruntime/test/python/testdata/node/test_col2im_dilations/test_data_set_0/output_0.pb
Binary file not shown.
Binary file added
BIN
+318 Bytes
onnxruntime/test/python/testdata/node/test_col2im_pads/test_data_set_0/input_0.pb
Binary file not shown.
Binary file added
BIN
+35 Bytes
onnxruntime/test/python/testdata/node/test_col2im_pads/test_data_set_0/input_1.pb
Binary file not shown.
Binary file added
BIN
+35 Bytes
onnxruntime/test/python/testdata/node/test_col2im_pads/test_data_set_0/input_2.pb
Binary file not shown.
Binary file added
BIN
+120 Bytes
onnxruntime/test/python/testdata/node/test_col2im_pads/test_data_set_0/output_0.pb
Binary file not shown.
Binary file added
BIN
+162 Bytes
onnxruntime/test/python/testdata/node/test_col2im_strides/test_data_set_0/input_0.pb
Binary file not shown.
Binary file added
BIN
+35 Bytes
onnxruntime/test/python/testdata/node/test_col2im_strides/test_data_set_0/input_1.pb
Binary file not shown.
Binary file added
BIN
+35 Bytes
onnxruntime/test/python/testdata/node/test_col2im_strides/test_data_set_0/input_2.pb
Binary file not shown.
Binary file added
BIN
+120 Bytes
onnxruntime/test/python/testdata/node/test_col2im_strides/test_data_set_0/output_0.pb
Binary file not shown.