mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-07-02 03:55:34 +00:00
fix ConvTranspose 1D (#20194)
This commit is contained in:
parent
4f2d454211
commit
c529e05e38
2 changed files with 2 additions and 2 deletions
|
|
@ -268,7 +268,7 @@ const convTranspose1d = (context: ComputeContext, attributes: ConvTransposeAttri
|
|||
//[FILTER_OUT_CHANNEL, FILTER_IN_CHANNEL, kW] -> [FILTER_OUT_CHANNEL, FILTER_IN_CHANNEL, kH=1, kW]
|
||||
context.inputs[1].reshape([context.inputs[1].dims[0], context.inputs[1].dims[1], 1, context.inputs[1].dims[2]])
|
||||
];
|
||||
if (inputs.length === 3) {
|
||||
if (context.inputs.length === 3) {
|
||||
inputs.push(context.inputs[2]);
|
||||
}
|
||||
let kernelShape = attributes.kernelShape;
|
||||
|
|
|
|||
|
|
@ -44,7 +44,7 @@ class ConvTranspose : public JsKernel {
|
|||
"autoPad" : $1,
|
||||
"dilations" : [$2],
|
||||
"group" : $3,
|
||||
"kernel_shape" : [$4],
|
||||
"kernelShape" : [$4],
|
||||
"pads" : [ $5, $6 ],
|
||||
"strides" : [$7],
|
||||
"wIsConst" : () JS_ARROW(!!HEAP8[$9]),
|
||||
|
|
|
|||
Loading…
Reference in a new issue