Motivation
In order to enrich the support of TF operator and the need of practical work, we add 15 operators to TVM. as follows: * Expm1, Rint, Softsign, Cumprod, Cumsum * SegmentMax, SegmentMin, SegmentMean, SegmentPord, SegmentSum * UnsortedSegmentMax, UnsortedSegmentMin, UnsortedSegmentMean * UnsortedSegmentPord, UnsortedSegmentSum
Implementation Details
- Expm1 https://tensorflow.google.cn/api_docs/python/tf/math/expm1
- Softsign https://tensorflow.google.cn/api_docs/python/tf/nn/softsign
- Rint https://tensorflow.google.cn/api_docs/python/tf/math/rint
- Cumprod https://tensorflow.google.cn/api_docs/python/tf/math/cumprod
- Cumsum https://tensorflow.google.cn/api_docs/python/tf/math/cumsum
- SegmentMax https://tensorflow.google.cn/api_docs/python/tf/math/segment_max
- SegmentMin https://tensorflow.google.cn/api_docs/python/tf/math/segment_min
- SegmentMean https://tensorflow.google.cn/api_docs/python/tf/math/segment_mean
- SegmentPord https://tensorflow.google.cn/api_docs/python/tf/math/segment_prod
- SegmentSum https://tensorflow.google.cn/api_docs/python/tf/math/segment_sum
- UnsortedSegmentMax https://tensorflow.google.cn/api_docs/python/tf/math/unsorted_segment_max
- UnsortedSegmentMin https://tensorflow.google.cn/api_docs/python/tf/math/unsorted_segment_min
- UnsortedSegmentMean https://tensorflow.google.cn/api_docs/python/tf/math/unsorted_segment_mean
- UnsortedSegmentProd https://tensorflow.google.cn/api_docs/python/tf/math/unsorted_segment_prod
- UnsortedSegmentSum https://tensorflow.google.cn/api_docs/python/tf/math/unsorted_segment_sum
In TF frontend, exmp1 composed by exp and subtraction. Softsign composed by abs and divide. Rint replaced by round. We provide a new implementation for Cumsum, Cumprod, SegmentMax, SegmentMin, SegmentMean, SegmentProd, and SegmentSum operators. For the UnsortedSegment operators, they share a set of implementation with Segment operators. The conversion is completed in TF frontend.