Skip to content
This repository has been archived by the owner on Nov 16, 2023. It is now read-only.

implement Resize operator #228

Open
wants to merge 13 commits into
base: master
Choose a base branch
from
Open

implement Resize operator #228

wants to merge 13 commits into from

Conversation

fs-eire
Copy link
Contributor

@fs-eire fs-eire commented Sep 8, 2020

This change uses unified implementation that works with Upsample v7, Upsample v9, Resize v10 and Resize v11, in both CPU and WebGL backends. Depend on #227 to build.

Copy link
Collaborator

@hanbitmyths hanbitmyths left a 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;
Copy link
Collaborator

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.

this.roiInputIdx = 1;
this.scalesInputIdx = 2;
this.sizesInputIdx = 3;
} else if (this.opset === 9) {

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.

fs-eire and others added 11 commits January 11, 2021 18:40
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] <support@github.com>

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 <yulongw@microsoft.com>
Testing a collection size for < 0 will always be false.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants