-
Notifications
You must be signed in to change notification settings - Fork 0
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
[PTQ][OV] Sequential models support for Engine by TensorCollectorAdapter #16
base: develop
Are you sure you want to change the base?
Conversation
1c0426f
to
54732d0
Compare
239474d
to
43eb6bc
Compare
@alexsu52, @KodiaqQ, @l-bat, @kshpv, @andrey-churkin |
if isinstance(aggregator, ShapeAggregator): | ||
x = self._tensor_processor.unstack(x, axis=0)[0] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is needed for bias correction algo: it expects not stacked tensor shape for input creation
new_params = {"reduction_shape": self._stack_axis, "keepdims": False} | ||
if not all(k in kwargs for k in new_params): | ||
return per_element_result |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Now special reducers are filtered by this ugly filter
TensorReducerSequence Reducer adapter inside reducer TensorCollectorAdapter
43eb6bc
to
0cce7af
Compare
Changes
Sequential dataset with correspondent changes in engine in OV is presented: now user can specify two functions:
** get_tokens_from_sequence_func
** fill_sequential_inputs_fn
to infer sequential a model
New TensorCollectorAdapters are presented: now TensorAggregator can alter logic of statistic collection by specifying rules for reduction and aggregation
Reason for changes
Related tickets
110654
Tests
Not yet