Take exponential of input x using fast_exp implementation Parameters ---------- x : tvm.te.Tensor Input argument. Returns ------- y : tvm.te.Tensor The result.
(x)
| 786 | |
| 787 | |
| 788 | def fast_exp(x): |
| 789 | """Take exponential of input x using fast_exp implementation |
| 790 | |
| 791 | Parameters |
| 792 | ---------- |
| 793 | x : tvm.te.Tensor |
| 794 | Input argument. |
| 795 | |
| 796 | Returns |
| 797 | ------- |
| 798 | y : tvm.te.Tensor |
| 799 | The result. |
| 800 | """ |
| 801 | if x.dtype.startswith("int") or x.dtype.startswith("uint"): |
| 802 | x = cast(x, "float32") |
| 803 | return cpp.fast_exp(x, x.dtype, tag.ELEMWISE) |
| 804 | |
| 805 | |
| 806 | def fast_tanh(x): |
nothing calls this directly
no test coverage detected
searching dependent graphs…