singa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <>
Subject [GitHub] [singa] joddiy edited a comment on issue #700: Expand the model zoo (example model set)
Date Mon, 15 Jun 2020 10:26:08 GMT

joddiy edited a comment on issue #700:

   Thanks @agnesnatasya , I'll test the InceptionV2 again to check the error.
   And thanks you all for your contribution! @Shashankwer @agnesnatasya @Alvinnyk 
   For the next plan, I list some necessary operators we have to implement:
   ## Type 1
   Equal 1h
   Abs 1h
   Floor 1h
   ## Type 2
   Exp 1h
   Round 1h
   <s>Pad 5h</s>
   <s>Expand 5h</s>
   Upsample 6h
   ## Type 3
   Hardmax 6h
   RoiAlign 	6h
   ConvTranspose 6h
   NonMaxSuppression 12h
   Resize 12h
   ## Type 4
   InstanceNormalization c++
   ReduceMin c++
   Type 1 means the operators have been implemented in, we only need to add it
into the
   Type 2 and Type 3 mean the operators don't exist in, we need to implement them
first. Type 2 is easier but Type 3 is harder.
   Type 4 need to modify the c++ code, we'll consider it later.
   Xh means the workload hours.
   So the plan is:
   1. You should read the code of under [dev branch](
Because we have updated the soonx to support the re-training, so it's a little different from
the old version.
   2. You try to add an operator at the `Type 1`, you may add a key in the SingaBackend._rename_operators,
and if you need a function to modify the operator, add a key in the SingaBackend._special_operators
to indicate such a function.
   3. Try to add the test cases to test your new operator, the test cases list at [here](,
and you should check the code in There are two patterns, the include
pattern means the operators which do not in it will be excluded, and the exclude patterns
will exclude the pattern in it.
   4. When you finish the Type 1, I guess you must have been familiar with the sonnx, so you
can try the Type 2 and Type 3. These need you to add operators in ``, you can read
the code in it and add test cases in ``. In the ``, you need to
add a class with forward and backward functions. and you need to add a function to call the
class's forward function. Don't forget to add test cases in ``. After you
add the operator in the autograd, you can add it to the sonnx following the point 2 and 3.
   I know it's a little difficult at first. So I hope you don't be urgent to do, just read
the code carefully first and if you have any questions, feel free to ask me.
   By the way, please add your code to dev branch. And please skip the frontend code in,
only read the backend one. I'm working on the frontend to upgrade it.

This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:

View raw message