Skip to content

Commit

Permalink
feat: Add converter for reflection pad 1d and 2d operation
Browse files Browse the repository at this point in the history
Signed-off-by: Dheeraj Peri <peri.dheeraj@gmail.com>
  • Loading branch information
peri044 committed Feb 24, 2022
1 parent 7223fc8 commit 2484a43
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ If you would like to build outside a docker container, please follow the section
// Set input datatypes. Allowerd options torch::{kFloat, kHalf, kChar, kInt32, kBool}
// Size of input_dtypes should match number of inputs to the network.
// If input_dtypes is not set, default precision follows traditional PyT / TRT rules
auto input = torch_tensorrt::Input(dims, torch::kHalf)
auto input = torch_tensorrt::Input(dims, torch::kHalf);
auto compile_settings = torch_tensorrt::ts::CompileSpec({input});
// FP16 execution
compile_settings.enabled_precisions = {torch::kHalf};
Expand Down
1 change: 1 addition & 0 deletions core/conversion/converters/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ cc_library(
"impl/pooling.cpp",
"impl/quantization.cpp",
"impl/reduce.cpp",
"impl/reflection_pad.cpp",
"impl/replication_pad.cpp",
"impl/select.cpp",
"impl/shuffle.cpp",
Expand Down
4 changes: 4 additions & 0 deletions tests/core/conversion/converters/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,10 @@ converter_test(
name = "test_reduce",
)

converter_test(
name = "test_reflection_pad",
)

converter_test(
name = "test_replication_pad",
)
Expand Down

0 comments on commit 2484a43

Please sign in to comment.