mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-05-31 23:27:43 +00:00
Resolve GH issue 12706 (#12815)
This commit is contained in:
parent
6fe712b587
commit
931c8b0147
2 changed files with 24 additions and 0 deletions
|
|
@ -1691,7 +1691,19 @@ static const std::unordered_map<std::string_view, const HandlerInfo&> handler_ma
|
|||
{"Split", split_handler},
|
||||
{"Shape", shape_handler},
|
||||
{"Pad", pad_handler},
|
||||
// The CUDA Resize kernel assumes that the input is NCHW and
|
||||
// Resize can't be supported in ORT builds with CUDA enabled.
|
||||
// TODO: Enable this once the CUDA Resize kernel is implemented
|
||||
// "generically" (i.e.) aligning with the generic nature of the
|
||||
// ONNX spec.
|
||||
// See https://github.com/microsoft/onnxruntime/pull/10824 for
|
||||
// a similar fix applied to the CPU Resize kernel.
|
||||
// Per tests included in #10824, the ROCM EP also generates
|
||||
// incorrect results when this handler is used, so the Resize
|
||||
// handler is not enabled even for those builds.
|
||||
#if !defined(USE_CUDA) && !defined(USE_ROCM)
|
||||
{"Resize", resize_handler},
|
||||
#endif
|
||||
{"ReduceSum", reduce_sum_handler},
|
||||
|
||||
{"ReduceLogSum", reduce_op_handler},
|
||||
|
|
|
|||
|
|
@ -294,6 +294,17 @@ TEST(TransposeOptimizerTests, TestPadNonconst) {
|
|||
/*opset_version*/ 11);
|
||||
}
|
||||
|
||||
// The CUDA Resize kernel assumes that the input is NCHW and
|
||||
// Resize can't be supported in ORT builds with CUDA enabled.
|
||||
// TODO: Enable this once the CUDA Resize kernel is implemented
|
||||
// "generically" (i.e.) aligning with the generic nature of the
|
||||
// ONNX spec.
|
||||
// See https://github.com/microsoft/onnxruntime/pull/10824 for
|
||||
// a similar fix applied to the CPU Resize kernel.
|
||||
// Per tests included in #10824, the ROCM EP also generates
|
||||
// incorrect results when this handler is used, so the Resize
|
||||
// handler is not enabled even for those builds.
|
||||
#if !defined(USE_CUDA) && !defined(USE_ROCM)
|
||||
TEST(TransposeOptimizerTests, TestResize) {
|
||||
auto build_test_case_1 = [&](ModelTestBuilder& builder) {
|
||||
auto* input0_arg = MakeInput<float>(builder, {{4, -1, 2, -1}}, {4, 6, 2, 10}, 0.0, 1.0);
|
||||
|
|
@ -498,6 +509,7 @@ TEST(TransposeOptimizerTests, TestResizeNonconstOpset13) {
|
|||
/*opset_version*/ 13);
|
||||
}
|
||||
|
||||
#endif
|
||||
TEST(TransposeOptimizerTests, TestAdd) {
|
||||
auto build_test_case_1 = [&](ModelTestBuilder& builder) {
|
||||
auto* input0_arg = builder.MakeInput<float>({4, 6, 10}, 0.0, 1.0);
|
||||
|
|
|
|||
Loading…
Reference in a new issue