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.

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.

4 participants