uTensor / utensor_cgen

C++ code generator for uTensor https://utensor-cgen.readthedocs.io/en/latest/
Apache License 2.0
50 stars 40 forks source link

unsupported op type in uTensor: Tanh #27

Open wil3 opened 6 years ago

wil3 commented 6 years ago

When running the tool I get this error. It appears in https://github.com/uTensor/utensor_cgen/blob/master/utensor_cgen/operators.py#L158-L170 that tanh isnt listed. Am I missing something here or is this tool still being developed. Thank you.

wil3 commented 6 years ago

Following up for those coming across the same thing it appears quantizing activation functions is a hard problem still being researched. This paper seems to be discussing it in more detail https://arxiv.org/pdf/1702.00953.pdf

It might be helpful in the README for both this project and uTensor to specify the supported operators so others will know whether this solution is right for them.

neil-tan commented 6 years ago

Hey @wil3 ,

Sorry for the delay. Indeed, we should list all the supported operators in the README. I'm going to do that in the next incremental release. Basically, uTensor should support all quantized operators in TF. Possibly non-quantized Ops too, there's always the option of going to quantized to float and to the regular implementations.