MCPcopy Create free account
hub / github.com/apache/tvm / fast_exp

Function fast_exp

python/tvm/topi/math.py:788–803  ·  view source on GitHub ↗

Take exponential of input x using fast_exp implementation Parameters ---------- x : tvm.te.Tensor Input argument. Returns ------- y : tvm.te.Tensor The result.

(x)

Source from the content-addressed store, hash-verified

786
787
788def 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
806def fast_tanh(x):

Callers

nothing calls this directly

Calls 1

castFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…