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

[circle-interpreter] Need a way to infer output shape #12979

Closed
shs-park opened this issue May 10, 2024 · 2 comments
Closed

[circle-interpreter] Need a way to infer output shape #12979

shs-park opened this issue May 10, 2024 · 2 comments
Assignees
Labels
enhancement New feature or making things better

Comments

@shs-park
Copy link
Contributor

shs-park commented May 10, 2024

What

  • In circle-interpreter,
  • Let's support getting the corresponding output value, when output shape inference is possible

Why

  • Some circle models have dynamic output shapes, such as <2x2x?xf32>, where the ? value is not decided yet.
  • While interpreting those models with specific input value, there are some cases that output shapes can be inferred.
  • Currently, such shape inference is not available in circle-interpreter, which generates 0 size of output result.

Expect

  • Generates correct output file
@shs-park shs-park added the enhancement New feature or making things better label May 10, 2024
@shs-park shs-park self-assigned this May 10, 2024
@shs-park
Copy link
Contributor Author

I uploaded the related .circle model

In this model, the output shape of StridedSlice operation is dynamic <2x2x?xf32>
Note that ? could be represented as -1 or 1, depend on model viewers

Model download : Slice_F32_R3_nc_1.zip

image

@shs-park
Copy link
Contributor Author

shs-park commented May 14, 2024

Close as all related PRs are merged into the master branch.
The output file is now generated by circle-interpreter correctly with the model.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or making things better
Projects
None yet
Development

No branches or pull requests

1 participant