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

[GNA] Added ConcatAlignFilter support for Accuracy Aware mode #7834

Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -642,7 +642,11 @@ class DataQuantizer<Desc, InferenceEngine::WeightableLayer *> : public DataQuant
public:
explicit DataQuantizer(float scaleFactor) : DataQuantizerBase(scaleFactor) {}
bool operator()(InferenceEngine::WeightableLayer *wl) const {
(*this)(wl, typename Desc::MandatoryType());
if (LayerInfo(wl).isConcatAlignFilter()) {
elilobanova marked this conversation as resolved.
Show resolved Hide resolved
elilobanova marked this conversation as resolved.
Show resolved Hide resolved
(*this)(wl, typename Desc::OptionalType());
} else {
(*this)(wl, typename Desc::MandatoryType());
}
return true;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1342,7 +1342,7 @@ class ScaleFactorCalculator {
template<class T>
static int GetMandatoryWeightsBytesSize(T ptr) {
auto info = LayerInfo(ptr);
if (info.isConvolution() || info.isScaleShift()) {
if (info.isConvolution() || info.isScaleShift() || info.isConcatAlignFilter()) {
return GetOptionalWeightsBytesSize();
}

elilobanova marked this conversation as resolved.
Show resolved Hide resolved
Expand Down