From c11cffb56543278b4d894df8dcce8b60bb927fab Mon Sep 17 00:00:00 2001 From: Arthur Islamov Date: Thu, 3 Aug 2023 20:46:18 +0400 Subject: [PATCH] [js/web] Fix typo in JSEP ConvTranspose (#16884) ### Description A typo fix in JSEP ConvTranspose. It used $12 as output shape pointer but it should be $13. As $12 holds shape size --- onnxruntime/core/providers/js/operators/conv_transpose.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/onnxruntime/core/providers/js/operators/conv_transpose.h b/onnxruntime/core/providers/js/operators/conv_transpose.h index b09091c74d..a5aeae8646 100644 --- a/onnxruntime/core/providers/js/operators/conv_transpose.h +++ b/onnxruntime/core/providers/js/operators/conv_transpose.h @@ -34,7 +34,7 @@ class ConvTranspose : public JsKernel { "strides" : [$7], "wIsConst" : () JS_ARROW(!!HEAP8[$9]), "outputPadding" : $10 ? Array.from(HEAP32.subarray($11, $11 + $10)) : [], - "outputShape" : $12 ? Array.from(HEAP32.subarray($12, $13 + $12)) : [] + "outputShape" : $12 ? Array.from(HEAP32.subarray($13, $13 + $12)) : [] }), static_cast(conv_transpose_attrs_.auto_pad), static_cast(conv_transpose_attrs_.dilations.size() > 0 ? conv_transpose_attrs_.dilations[0] : 0),