root icon indicating copy to clipboard operation
root copied to clipboard

[GSOC][TMVA][SOFIE] Shape ONNX Operator implemented with the corresponding unit tests

Open Neel-Shah-29 opened this issue 2 years ago • 1 comments

This Pull request: Adds the Shape ONNX Operator with the corresponding unit tests

Checklist:

  • [ ] tested changes locally
  • [ ] updated the docs (if necessary)

This PR fixes #

Neel-Shah-29 avatar Aug 01 '22 18:08 Neel-Shah-29

Can one of the admins verify this patch?

phsft-bot avatar Aug 01 '22 18:08 phsft-bot

@phsft-bot build just on ROOT-ubuntu2004/default with flags -Dtmva-sofie=On

lmoneta avatar Aug 19 '22 09:08 lmoneta

Starting build on ROOT-ubuntu2004/default with flags -Dtmva-sofie=On How to customize builds

phsft-bot avatar Aug 19 '22 09:08 phsft-bot

Build failed on ROOT-ubuntu2004/default. Running on root-ubuntu-2004-3.cern.ch:/home/sftnight/build/workspace/root-pullrequests-build See console output.

Errors:

  • [2022-08-19T09:57:21.760Z] FAILED: lib/modules.idx
  • [2022-08-19T09:57:21.760Z] FAILED: tmva/sofie/test/CMakeFiles/SofieCompileModels_ROOT.util

phsft-bot avatar Aug 19 '22 09:08 phsft-bot

@phsft-bot build just on ROOT-ubuntu2204/default with flags -Dtmva-sofie=On

lmoneta avatar Aug 19 '22 09:08 lmoneta

Starting build on ROOT-ubuntu2204/default with flags -Dtmva-sofie=On How to customize builds

phsft-bot avatar Aug 19 '22 09:08 phsft-bot

Build failed on ROOT-ubuntu2204/default. Running on root-ubuntu-2204-1.cern.ch:/home/sftnight/build/workspace/root-pullrequests-build See console output.

Warnings:

  • [2022-08-19T10:06:47.977Z] /usr/include/python3.10/numpy/__multiarray_api.h:1464:1: warning: ‘int _import_array()’ defined but not used [-Wunused-function]
  • [2022-08-19T10:06:49.641Z] /usr/include/python3.10/numpy/__multiarray_api.h:1464:1: warning: ‘int _import_array()’ defined but not used [-Wunused-function]
  • [2022-08-19T10:06:53.210Z] /usr/include/python3.10/numpy/__multiarray_api.h:1464:1: warning: ‘int _import_array()’ defined but not used [-Wunused-function]
  • [2022-08-19T10:06:56.633Z] /usr/include/python3.10/numpy/__multiarray_api.h:1464:1: warning: ‘int _import_array()’ defined but not used [-Wunused-function]

phsft-bot avatar Aug 19 '22 10:08 phsft-bot

I have made some changes related to Shape Operator. Here is the error i am facing for converting fShape to string and also in the output its not accepting std::vector<int> image

Neel-Shah-29 avatar Aug 20 '22 15:08 Neel-Shah-29

@Neel-Shah-29 : see my comments above for fixing the errors you are having.

lmoneta avatar Aug 22 '22 10:08 lmoneta

@lmoneta Done with the changes sir. Thanks for reviewing!

Neel-Shah-29 avatar Aug 23 '22 15:08 Neel-Shah-29

@phsft-bot build just on ROOT-ubuntu2204/default with flags -Dtmva-sofie=On

lmoneta avatar Aug 23 '22 16:08 lmoneta

Starting build on ROOT-ubuntu2204/default with flags -Dtmva-sofie=On How to customize builds

phsft-bot avatar Aug 23 '22 16:08 phsft-bot

Build failed on ROOT-ubuntu2204/default. Running on root-ubuntu-2204-2.cern.ch:/home/sftnight/build/workspace/root-pullrequests-build See console output.

Warnings:

  • [2022-08-23T16:36:24.018Z] /home/sftnight/build/workspace/root-pullrequests-build/root/core/metacling/src/TClingCallFunc.cxx:1539:20: warning: ‘this’ pointer is null [-Wnonnull]
  • [2022-08-23T16:48:34.783Z] /home/sftnight/build/workspace/root-pullrequests-build/build/tmva/sofie/test/Shape_FromONNX.hxx:20:35: warning: unused parameter ‘tensor_X’ [-Wunused-parameter]

Failing tests:

phsft-bot avatar Aug 23 '22 17:08 phsft-bot

The PR looks good. There is only one thing missing. The Shape operator is not using the optional attributes end and start which define the ending and initial position of the tensor from which one wants to have the shape. See the ONNX documentation: https://github.com/onnx/onnx/blob/main/docs/Operators.md#Shape. I think would be nice to add this functionality to be compliant with the ONNX standard

Sir i have implemented the Start and End Optional attributes but currently its giving a segmentation fault on build.

Neel-Shah-29 avatar Aug 27 '22 17:08 Neel-Shah-29

@Neel-Shah-29 , can you please fix the code as suggested in the comment above and fix also the conflicts so we can test in the CI Thank you !

Now the conflicts are fixed and comment is applied we can run the CI tests.

Neel-Shah-29 avatar Sep 02 '22 08:09 Neel-Shah-29

@phsft-bot build just on ROOT-ubuntu2204/default with flags -Dtmva-sofie=On

lmoneta avatar Sep 02 '22 12:09 lmoneta

Starting build on ROOT-ubuntu2204/default with flags -Dtmva-sofie=On How to customize builds

phsft-bot avatar Sep 02 '22 12:09 phsft-bot

Build failed on ROOT-ubuntu2204/default. Running on root-ubuntu-2204-1.cern.ch:/home/sftnight/build/workspace/root-pullrequests-build See console output.

Warnings:

  • [2022-09-02T13:08:08.962Z] /usr/include/python3.10/numpy/__multiarray_api.h:1464:1: warning: ‘int _import_array()’ defined but not used [-Wunused-function]
  • [2022-09-02T13:08:12.947Z] /usr/include/python3.10/numpy/__multiarray_api.h:1464:1: warning: ‘int _import_array()’ defined but not used [-Wunused-function]
  • [2022-09-02T13:08:23.364Z] /usr/include/python3.10/numpy/__multiarray_api.h:1464:1: warning: ‘int _import_array()’ defined but not used [-Wunused-function]
  • [2022-09-02T13:08:24.949Z] /usr/include/python3.10/numpy/__multiarray_api.h:1464:1: warning: ‘int _import_array()’ defined but not used [-Wunused-function]

phsft-bot avatar Sep 02 '22 13:09 phsft-bot

@phsft-bot build just on ROOT-ubuntu2204/default with flags -Dtmva-sofie=On

lmoneta avatar Sep 06 '22 07:09 lmoneta

Starting build on ROOT-ubuntu2204/default with flags -Dtmva-sofie=On How to customize builds

phsft-bot avatar Sep 06 '22 07:09 phsft-bot

Build failed on ROOT-ubuntu2204/default. Running on root-ubuntu-2204-1.cern.ch:/home/sftnight/build/workspace/root-pullrequests-build See console output.

Warnings:

  • [2022-09-06T08:00:47.203Z] /usr/include/python3.10/numpy/__multiarray_api.h:1464:1: warning: ‘int _import_array()’ defined but not used [-Wunused-function]
  • [2022-09-06T08:00:48.672Z] /usr/include/python3.10/numpy/__multiarray_api.h:1464:1: warning: ‘int _import_array()’ defined but not used [-Wunused-function]
  • [2022-09-06T08:00:59.632Z] /usr/include/python3.10/numpy/__multiarray_api.h:1464:1: warning: ‘int _import_array()’ defined but not used [-Wunused-function]
  • [2022-09-06T08:01:01.033Z] /usr/include/python3.10/numpy/__multiarray_api.h:1464:1: warning: ‘int _import_array()’ defined but not used [-Wunused-function]

phsft-bot avatar Sep 06 '22 08:09 phsft-bot