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
[GSOC][TMVA][SOFIE] Pow ONNX Operator added to SOFIE with the corresponding unit tests. #10971
Conversation
Can one of the admins verify this patch? |
@phsft-bot build just on ROOT-ubuntu2004/default, ROOT-ubuntu18.04/default with flags -Dtmva-sofie=On |
Starting build on |
Build failed on ROOT-ubuntu2004/default. Errors:
|
size_t length = ConvertShapeToLength(fShape); | ||
out << "\n//------ POW\n"; | ||
out << SP << "for (int id = 0; id < " << length << " ; id++){\n"; | ||
out << SP << SP << "tensor_" << fNY << "[id] = std::pow(tensor_" << fNX1 << "[id] , tensor_" << fNX2 << "[id]);\n"; |
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.
I think there is a problem in the broadcasting case, when the two tensor shapes are not the same. We compute correctly the shape but we need also to have a new intermediate tensor which has the same shape as fNX1 and is the broadcasted result of fNX2 and we use that one for the pow function.
Hi @Neel-Shah-29 , |
1808e4b
to
5a08169
Compare
@phsft-bot build just on ROOT-ubuntu2204/default, ROOT-ubuntu2004/default, ROOT-ubuntu18.04/default with flags -Dtmva-sofie=On |
Starting build on |
Build failed on ROOT-ubuntu2004/default. Errors:
|
Build failed on ROOT-ubuntu2204/default. Failing tests:
|
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.
I think it would be better to integrate this operator in the BinaryOperator types, so we will have less code. Thank you @Neel-Shah-29 if you can do this
@phsft-bot build just on ROOT-ubuntu2204/default, ROOT-ubuntu2004/default, ROOT-ubuntu18.04/default with flags -Dtmva-sofie=On |
Starting build on |
Build failed on ROOT-ubuntu2204/default. Errors:
|
Build failed on ROOT-ubuntu2004/default. Errors:
|
Build failed on ROOT-ubuntu18.04/default. Errors:
|
@phsft-bot build just on ROOT-ubuntu2204/default, ROOT-ubuntu2004/default, ROOT-ubuntu18.04/default with flags -Dtmva-sofie=On |
Starting build on |
Build failed on ROOT-ubuntu2204/default. Errors:
|
Build failed on ROOT-ubuntu2004/default. Errors:
|
Build failed on ROOT-ubuntu18.04/default. Errors:
|
9425295
to
7fc6639
Compare
@phsft-bot build just on ROOT-ubuntu2204/default, ROOT-ubuntu2004/default, ROOT-ubuntu18.04/default with flags -Dtmva-sofie=On |
Starting build on |
Build failed on ROOT-ubuntu2204/default. Warnings:
Failing tests:
|
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.
LGTM ! Thank you Neel for applying the suggested changes !
This Pull request: Pow ONNX Operator implemented with the corresponding unit tests to validate the written code.
Checklist: