-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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] KSOFunction test fix #6678
Conversation
if (totalElements != totalWeights) { | ||
THROW_GNA_EXCEPTION << l->name << " weights columns from transposition info (" << totalElements | ||
<< ") don't match input dimensions (" << totalWeights << ")"; | ||
} |
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.
since this code is similar with one for FullyConnected layer I'd create a lambda function (something like transpInfoMatchWeightsSize) and call it in all required places
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.
ok, that makes sense
f17a35d
to
7f9d816
Compare
THROW_GNA_EXCEPTION << "For layer: " << l->name | ||
<< " weights size(" << weightsElements<< ") invalid: should match input size of(" << lastD << ")"; | ||
} | ||
// TODO: add broadcasting rules checks |
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.
Why not add those checks right now?
* [GNA] KSOFunction test fix * Lambda for dimensions matching check
* [GNA] KSOFunction test fix * Lambda for dimensions matching check
* [GNA] KSOFunction test fix * Lambda for dimensions matching check
* [GNA] KSOFunction test fix * Lambda for dimensions matching check
Details:
SubstituteScaleShiftBroadCastPass
gna_lugin.cpp
due to dimensions inconsistency and memory errors inTransposeWeightsFromNCHWToNHWCPass
TransposeWeightsFromNCHWToNHWCPass
to avoid memory errors in futureEltwiseReshapeActivation
testKSOFunction
test in GNA skip configTickets: