-
Notifications
You must be signed in to change notification settings - Fork 127
implement Resize operator #228
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Regarding test cases failure, I think this review has a dependency with interface change, right? Please, double-check and merger after all tests are passed.
if (this.opset > 10) { | ||
this.roiInputIdx = 1; | ||
this.scalesInputIdx = 2; | ||
this.sizesInputIdx = 3; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sizesInputIdx is not initialized when opset is 9, but it seems it's always used by prepare(). Am I missing something here? roiInputIdx is also not initialized, but no direct path to be used by index is here.
lib/ops/upsample.ts
Outdated
this.roiInputIdx = 1; | ||
this.scalesInputIdx = 2; | ||
this.sizesInputIdx = 3; | ||
} else if (this.opset === 9) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I ran into an issue when trying to use this when this.opset was 10. In my particular use case, adding || this.opset === 10
caused the inference to run as expected, but I am not an expert regarding this codebase.
Bumps [ini](https://github.com/isaacs/ini) from 1.3.5 to 1.3.7. - [Release notes](https://github.com/isaacs/ini/releases) - [Commits](npm/ini@v1.3.5...v1.3.7) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* wasm: support int32 for Add, Sub and Mul * enable test cases only for WASM
Switch statement does not handle disjunction as a list of cases. Consider writing separate cases for each. Co-authored-by: Yulong Wang <[email protected]>
Testing a collection size for < 0 will always be false.
This change uses unified implementation that works with
Upsample
v7,Upsample
v9,Resize
v10 andResize
v11, in both CPU and WebGL backends. Depend on #227 to build.