diff options
author | TatWai Chong <tatwai.chong@arm.com> | 2024-01-12 13:13:22 -0800 |
---|---|---|
committer | Eric Kunze <eric.kunze@arm.com> | 2024-01-23 22:05:26 +0000 |
commit | 6a46b251062dcd42bc9fa2bc9effad407747f64f (patch) | |
tree | ea4d74e6bfa643aa9d18f74491a59940dbc3b281 /verif/generator/tosa_error_if.py | |
parent | 64e4bfe627ded0ba44ff60b23db28c1ff5d73d13 (diff) | |
download | reference_model-6a46b251062dcd42bc9fa2bc9effad407747f64f.tar.gz |
Shape infer dynamic model to static model prior to execution.
Dynamic shape model cannot directly run on the refenence model as
the concrete size of tensor is unknown therefore the volume of tensor
is not able to be allocated. Furthemore, the operators also expect
the input model is static-shaped.
This change turns dynamic model to static model prior to execution.
- Add `ifm_dynamic` field into json description to indicate whether
the model has dynamic shape or not.
- Add the shape inference pass into the compilation pipeline, firstly
legalize the dynamic tf/tfl model to dynamic tosa model with unknown
shapes, and then run the shape inference pass with static shapes
input argument to resolve unknown dimensions.
Change-Id: I5d2ffd452becc562dc30546789705bd01dd7a0b0
Signed-off-by: TatWai Chong <tatwai.chong@arm.com>
Diffstat (limited to 'verif/generator/tosa_error_if.py')
0 files changed, 0 insertions, 0 deletions