Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[compiler] Support Shape Inference for determined by input data #14095

Open
icodo98 opened this issue Sep 26, 2024 · 1 comment
Open

[compiler] Support Shape Inference for determined by input data #14095

icodo98 opened this issue Sep 26, 2024 · 1 comment
Labels
help wanted Extra attention is needed SSAFY

Comments

@icodo98
Copy link
Contributor

icodo98 commented Sep 26, 2024

What

Let's support Shape Inference for determined by input data

Why

There are some operations(ex. Reshape, Pad) which determine output shape by input tensor data.
Current ShapeInference only allows access to input data when input is CircleConst.
It leaves output shape unknown or stop inferencing when input is CircleNode instead CircleConst.
However, there are some operations (ex. PACK) that determines output data in compile time.
Maybe we can inference output shape for these cases.

@icodo98 icodo98 added help wanted Extra attention is needed SSAFY labels Sep 26, 2024
@icodo98
Copy link
Contributor Author

icodo98 commented Sep 26, 2024

It leaves output shape unknown or stop inferencing when input is CircleNode instead CircleConst.

With principal above, .opt.circle is different from .tflite in YamNet

image

After ShapeInferencePass output shape of Reshape will be [?, ?, ?, ?].

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed SSAFY
Projects
None yet
Development

No branches or pull requests

1 participant