Skip to content

Commit 2484a43

Browse files
committed
feat: Add converter for reflection pad 1d and 2d operation
Signed-off-by: Dheeraj Peri <[email protected]>
1 parent 7223fc8 commit 2484a43

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ If you would like to build outside a docker container, please follow the section
4848
// Set input datatypes. Allowerd options torch::{kFloat, kHalf, kChar, kInt32, kBool}
4949
// Size of input_dtypes should match number of inputs to the network.
5050
// If input_dtypes is not set, default precision follows traditional PyT / TRT rules
51-
auto input = torch_tensorrt::Input(dims, torch::kHalf)
51+
auto input = torch_tensorrt::Input(dims, torch::kHalf);
5252
auto compile_settings = torch_tensorrt::ts::CompileSpec({input});
5353
// FP16 execution
5454
compile_settings.enabled_precisions = {torch::kHalf};

core/conversion/converters/BUILD

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ cc_library(
7171
"impl/pooling.cpp",
7272
"impl/quantization.cpp",
7373
"impl/reduce.cpp",
74+
"impl/reflection_pad.cpp",
7475
"impl/replication_pad.cpp",
7576
"impl/select.cpp",
7677
"impl/shuffle.cpp",

tests/core/conversion/converters/BUILD

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,10 @@ converter_test(
8383
name = "test_reduce",
8484
)
8585

86+
converter_test(
87+
name = "test_reflection_pad",
88+
)
89+
8690
converter_test(
8791
name = "test_replication_pad",
8892
)

0 commit comments

Comments
 (0)