|
tvm::te::Tensor | broadcast_to (const tvm::te::Tensor &t, const tvm::Array< tvm::PrimExpr > &output_shape, std::string name="T_broadcast_to", std::string tag=kBroadcast) |
| Creates an operation that broadcasts a tensor into a compatible shape according to numpy's rules. More...
|
|
tvm::PrimExpr | logical_and (const tvm::PrimExpr &a, const tvm::PrimExpr &b) |
|
tvm::te::Tensor | logical_and (const tvm::te::Tensor &A, const tvm::te::Tensor &B, std::string name="T_" "logical_and", std::string tag=kBroadcast) |
|
tvm::te::Tensor | logical_and (const tvm::te::Tensor &A, const tvm::PrimExpr &B, std::string name="T_" "logical_and", std::string tag=kElementWise) |
|
tvm::te::Tensor | logical_and (const tvm::PrimExpr &A, const tvm::te::Tensor &B, std::string name="T_" "logical_and", std::string tag=kElementWise) |
|
tvm::te::Tensor | operator&& (const tvm::te::Tensor &A, const tvm::te::Tensor &B) |
|
tvm::te::Tensor | operator&& (const tvm::PrimExpr &A, const tvm::te::Tensor &B) |
|
tvm::te::Tensor | operator&& (const tvm::te::Tensor &A, const tvm::PrimExpr &B) |
|
tvm::PrimExpr | logical_or (const tvm::PrimExpr &a, const tvm::PrimExpr &b) |
|
tvm::te::Tensor | logical_or (const tvm::te::Tensor &A, const tvm::te::Tensor &B, std::string name="T_" "logical_or", std::string tag=kBroadcast) |
|
tvm::te::Tensor | logical_or (const tvm::te::Tensor &A, const tvm::PrimExpr &B, std::string name="T_" "logical_or", std::string tag=kElementWise) |
|
tvm::te::Tensor | logical_or (const tvm::PrimExpr &A, const tvm::te::Tensor &B, std::string name="T_" "logical_or", std::string tag=kElementWise) |
|
tvm::te::Tensor | operator|| (const tvm::te::Tensor &A, const tvm::te::Tensor &B) |
|
tvm::te::Tensor | operator|| (const tvm::PrimExpr &A, const tvm::te::Tensor &B) |
|
tvm::te::Tensor | operator|| (const tvm::te::Tensor &A, const tvm::PrimExpr &B) |
|
tvm::PrimExpr | logical_xor (const tvm::PrimExpr &a, const tvm::PrimExpr &b) |
|
tvm::te::Tensor | logical_xor (const tvm::te::Tensor &A, const tvm::te::Tensor &B, std::string name="T_" "logical_xor", std::string tag=kBroadcast) |
|
tvm::te::Tensor | logical_xor (const tvm::te::Tensor &A, const tvm::PrimExpr &B, std::string name="T_" "logical_xor", std::string tag=kElementWise) |
|
tvm::te::Tensor | logical_xor (const tvm::PrimExpr &A, const tvm::te::Tensor &B, std::string name="T_" "logical_xor", std::string tag=kElementWise) |
|
tvm::PrimExpr | bitwise_and (const tvm::PrimExpr &a, const tvm::PrimExpr &b) |
|
tvm::te::Tensor | bitwise_and (const tvm::te::Tensor &A, const tvm::te::Tensor &B, std::string name="T_" "bitwise_and", std::string tag=kBroadcast) |
|
tvm::te::Tensor | bitwise_and (const tvm::te::Tensor &A, const tvm::PrimExpr &B, std::string name="T_" "bitwise_and", std::string tag=kElementWise) |
|
tvm::te::Tensor | bitwise_and (const tvm::PrimExpr &A, const tvm::te::Tensor &B, std::string name="T_" "bitwise_and", std::string tag=kElementWise) |
|
tvm::te::Tensor | operator& (const tvm::te::Tensor &A, const tvm::te::Tensor &B) |
|
tvm::te::Tensor | operator& (const tvm::PrimExpr &A, const tvm::te::Tensor &B) |
|
tvm::te::Tensor | operator& (const tvm::te::Tensor &A, const tvm::PrimExpr &B) |
|
tvm::PrimExpr | bitwise_or (const tvm::PrimExpr &a, const tvm::PrimExpr &b) |
|
tvm::te::Tensor | bitwise_or (const tvm::te::Tensor &A, const tvm::te::Tensor &B, std::string name="T_" "bitwise_or", std::string tag=kBroadcast) |
|
tvm::te::Tensor | bitwise_or (const tvm::te::Tensor &A, const tvm::PrimExpr &B, std::string name="T_" "bitwise_or", std::string tag=kElementWise) |
|
tvm::te::Tensor | bitwise_or (const tvm::PrimExpr &A, const tvm::te::Tensor &B, std::string name="T_" "bitwise_or", std::string tag=kElementWise) |
|
tvm::te::Tensor | operator| (const tvm::te::Tensor &A, const tvm::te::Tensor &B) |
|
tvm::te::Tensor | operator| (const tvm::PrimExpr &A, const tvm::te::Tensor &B) |
|
tvm::te::Tensor | operator| (const tvm::te::Tensor &A, const tvm::PrimExpr &B) |
|
tvm::PrimExpr | bitwise_xor (const tvm::PrimExpr &a, const tvm::PrimExpr &b) |
|
tvm::te::Tensor | bitwise_xor (const tvm::te::Tensor &A, const tvm::te::Tensor &B, std::string name="T_" "bitwise_xor", std::string tag=kBroadcast) |
|
tvm::te::Tensor | bitwise_xor (const tvm::te::Tensor &A, const tvm::PrimExpr &B, std::string name="T_" "bitwise_xor", std::string tag=kElementWise) |
|
tvm::te::Tensor | bitwise_xor (const tvm::PrimExpr &A, const tvm::te::Tensor &B, std::string name="T_" "bitwise_xor", std::string tag=kElementWise) |
|
tvm::te::Tensor | operator^ (const tvm::te::Tensor &A, const tvm::te::Tensor &B) |
|
tvm::te::Tensor | operator^ (const tvm::PrimExpr &A, const tvm::te::Tensor &B) |
|
tvm::te::Tensor | operator^ (const tvm::te::Tensor &A, const tvm::PrimExpr &B) |
|
tvm::PrimExpr | add (const tvm::PrimExpr &a, const tvm::PrimExpr &b) |
|
tvm::te::Tensor | add (const tvm::te::Tensor &A, const tvm::te::Tensor &B, std::string name="T_" "add", std::string tag=kBroadcast) |
|
tvm::te::Tensor | add (const tvm::te::Tensor &A, const tvm::PrimExpr &B, std::string name="T_" "add", std::string tag=kElementWise) |
|
tvm::te::Tensor | add (const tvm::PrimExpr &A, const tvm::te::Tensor &B, std::string name="T_" "add", std::string tag=kElementWise) |
|
tvm::te::Tensor | operator+ (const tvm::te::Tensor &A, const tvm::te::Tensor &B) |
|
tvm::te::Tensor | operator+ (const tvm::PrimExpr &A, const tvm::te::Tensor &B) |
|
tvm::te::Tensor | operator+ (const tvm::te::Tensor &A, const tvm::PrimExpr &B) |
|
tvm::PrimExpr | subtract (const tvm::PrimExpr &a, const tvm::PrimExpr &b) |
|
tvm::te::Tensor | subtract (const tvm::te::Tensor &A, const tvm::te::Tensor &B, std::string name="T_" "subtract", std::string tag=kBroadcast) |
|
tvm::te::Tensor | subtract (const tvm::te::Tensor &A, const tvm::PrimExpr &B, std::string name="T_" "subtract", std::string tag=kElementWise) |
|
tvm::te::Tensor | subtract (const tvm::PrimExpr &A, const tvm::te::Tensor &B, std::string name="T_" "subtract", std::string tag=kElementWise) |
|
tvm::te::Tensor | operator- (const tvm::te::Tensor &A, const tvm::te::Tensor &B) |
|
tvm::te::Tensor | operator- (const tvm::PrimExpr &A, const tvm::te::Tensor &B) |
|
tvm::te::Tensor | operator- (const tvm::te::Tensor &A, const tvm::PrimExpr &B) |
|
tvm::PrimExpr | multiply (const tvm::PrimExpr &a, const tvm::PrimExpr &b) |
|
tvm::te::Tensor | multiply (const tvm::te::Tensor &A, const tvm::te::Tensor &B, std::string name="T_" "multiply", std::string tag=kBroadcast) |
|
tvm::te::Tensor | multiply (const tvm::te::Tensor &A, const tvm::PrimExpr &B, std::string name="T_" "multiply", std::string tag=kElementWise) |
|
tvm::te::Tensor | multiply (const tvm::PrimExpr &A, const tvm::te::Tensor &B, std::string name="T_" "multiply", std::string tag=kElementWise) |
|
tvm::te::Tensor | operator* (const tvm::te::Tensor &A, const tvm::te::Tensor &B) |
|
tvm::te::Tensor | operator* (const tvm::PrimExpr &A, const tvm::te::Tensor &B) |
|
tvm::te::Tensor | operator* (const tvm::te::Tensor &A, const tvm::PrimExpr &B) |
|
tvm::PrimExpr | divide (const tvm::PrimExpr &a, const tvm::PrimExpr &b) |
|
tvm::te::Tensor | divide (const tvm::te::Tensor &A, const tvm::te::Tensor &B, std::string name="T_" "divide", std::string tag=kBroadcast) |
|
tvm::te::Tensor | divide (const tvm::te::Tensor &A, const tvm::PrimExpr &B, std::string name="T_" "divide", std::string tag=kElementWise) |
|
tvm::te::Tensor | divide (const tvm::PrimExpr &A, const tvm::te::Tensor &B, std::string name="T_" "divide", std::string tag=kElementWise) |
|
tvm::PrimExpr | floor_divide (const tvm::PrimExpr &a, const tvm::PrimExpr &b) |
|
tvm::te::Tensor | floor_divide (const tvm::te::Tensor &A, const tvm::te::Tensor &B, std::string name="T_" "floor_divide", std::string tag=kBroadcast) |
|
tvm::te::Tensor | floor_divide (const tvm::te::Tensor &A, const tvm::PrimExpr &B, std::string name="T_" "floor_divide", std::string tag=kElementWise) |
|
tvm::te::Tensor | floor_divide (const tvm::PrimExpr &A, const tvm::te::Tensor &B, std::string name="T_" "floor_divide", std::string tag=kElementWise) |
|
tvm::PrimExpr | trunc_divide (const tvm::PrimExpr &a, const tvm::PrimExpr &b) |
|
tvm::te::Tensor | trunc_divide (const tvm::te::Tensor &A, const tvm::te::Tensor &B, std::string name="T_" "trunc_divide", std::string tag=kBroadcast) |
|
tvm::te::Tensor | trunc_divide (const tvm::te::Tensor &A, const tvm::PrimExpr &B, std::string name="T_" "trunc_divide", std::string tag=kElementWise) |
|
tvm::te::Tensor | trunc_divide (const tvm::PrimExpr &A, const tvm::te::Tensor &B, std::string name="T_" "trunc_divide", std::string tag=kElementWise) |
|
tvm::PrimExpr | mod (const tvm::PrimExpr &a, const tvm::PrimExpr &b) |
|
tvm::te::Tensor | mod (const tvm::te::Tensor &A, const tvm::te::Tensor &B, std::string name="T_" "mod", std::string tag=kBroadcast) |
|
tvm::te::Tensor | mod (const tvm::te::Tensor &A, const tvm::PrimExpr &B, std::string name="T_" "mod", std::string tag=kElementWise) |
|
tvm::te::Tensor | mod (const tvm::PrimExpr &A, const tvm::te::Tensor &B, std::string name="T_" "mod", std::string tag=kElementWise) |
|
tvm::PrimExpr | floor_mod (const tvm::PrimExpr &a, const tvm::PrimExpr &b) |
|
tvm::te::Tensor | floor_mod (const tvm::te::Tensor &A, const tvm::te::Tensor &B, std::string name="T_" "floor_mod", std::string tag=kBroadcast) |
|
tvm::te::Tensor | floor_mod (const tvm::te::Tensor &A, const tvm::PrimExpr &B, std::string name="T_" "floor_mod", std::string tag=kElementWise) |
|
tvm::te::Tensor | floor_mod (const tvm::PrimExpr &A, const tvm::te::Tensor &B, std::string name="T_" "floor_mod", std::string tag=kElementWise) |
|
tvm::PrimExpr | trunc_mod (const tvm::PrimExpr &a, const tvm::PrimExpr &b) |
|
tvm::te::Tensor | trunc_mod (const tvm::te::Tensor &A, const tvm::te::Tensor &B, std::string name="T_" "trunc_mod", std::string tag=kBroadcast) |
|
tvm::te::Tensor | trunc_mod (const tvm::te::Tensor &A, const tvm::PrimExpr &B, std::string name="T_" "trunc_mod", std::string tag=kElementWise) |
|
tvm::te::Tensor | trunc_mod (const tvm::PrimExpr &A, const tvm::te::Tensor &B, std::string name="T_" "trunc_mod", std::string tag=kElementWise) |
|
tvm::PrimExpr | maximum (const tvm::PrimExpr &a, const tvm::PrimExpr &b) |
|
tvm::te::Tensor | maximum (const tvm::te::Tensor &A, const tvm::te::Tensor &B, std::string name="T_" "maximum", std::string tag=kBroadcast) |
|
tvm::te::Tensor | maximum (const tvm::te::Tensor &A, const tvm::PrimExpr &B, std::string name="T_" "maximum", std::string tag=kElementWise) |
|
tvm::te::Tensor | maximum (const tvm::PrimExpr &A, const tvm::te::Tensor &B, std::string name="T_" "maximum", std::string tag=kElementWise) |
|
tvm::PrimExpr | minimum (const tvm::PrimExpr &a, const tvm::PrimExpr &b) |
|
tvm::te::Tensor | minimum (const tvm::te::Tensor &A, const tvm::te::Tensor &B, std::string name="T_" "minimum", std::string tag=kBroadcast) |
|
tvm::te::Tensor | minimum (const tvm::te::Tensor &A, const tvm::PrimExpr &B, std::string name="T_" "minimum", std::string tag=kElementWise) |
|
tvm::te::Tensor | minimum (const tvm::PrimExpr &A, const tvm::te::Tensor &B, std::string name="T_" "minimum", std::string tag=kElementWise) |
|
tvm::PrimExpr | power (const tvm::PrimExpr &a, const tvm::PrimExpr &b) |
|
tvm::te::Tensor | power (const tvm::te::Tensor &A, const tvm::te::Tensor &B, std::string name="T_" "power", std::string tag=kBroadcast) |
|
tvm::te::Tensor | power (const tvm::te::Tensor &A, const tvm::PrimExpr &B, std::string name="T_" "power", std::string tag=kElementWise) |
|
tvm::te::Tensor | power (const tvm::PrimExpr &A, const tvm::te::Tensor &B, std::string name="T_" "power", std::string tag=kElementWise) |
|
tvm::PrimExpr | left_shift (const tvm::PrimExpr &a, const tvm::PrimExpr &b) |
|
tvm::te::Tensor | left_shift (const tvm::te::Tensor &A, const tvm::te::Tensor &B, std::string name="T_" "left_shift", std::string tag=kBroadcast) |
|
tvm::te::Tensor | left_shift (const tvm::te::Tensor &A, const tvm::PrimExpr &B, std::string name="T_" "left_shift", std::string tag=kElementWise) |
|
tvm::te::Tensor | left_shift (const tvm::PrimExpr &A, const tvm::te::Tensor &B, std::string name="T_" "left_shift", std::string tag=kElementWise) |
|
tvm::te::Tensor | operator<< (const tvm::te::Tensor &A, const tvm::te::Tensor &B) |
|
tvm::te::Tensor | operator<< (const tvm::PrimExpr &A, const tvm::te::Tensor &B) |
|
tvm::te::Tensor | operator<< (const tvm::te::Tensor &A, const tvm::PrimExpr &B) |
|
tvm::PrimExpr | right_shift (const tvm::PrimExpr &a, const tvm::PrimExpr &b) |
|
tvm::te::Tensor | right_shift (const tvm::te::Tensor &A, const tvm::te::Tensor &B, std::string name="T_" "right_shift", std::string tag=kBroadcast) |
|
tvm::te::Tensor | right_shift (const tvm::te::Tensor &A, const tvm::PrimExpr &B, std::string name="T_" "right_shift", std::string tag=kElementWise) |
|
tvm::te::Tensor | right_shift (const tvm::PrimExpr &A, const tvm::te::Tensor &B, std::string name="T_" "right_shift", std::string tag=kElementWise) |
|
tvm::te::Tensor | operator>> (const tvm::te::Tensor &A, const tvm::te::Tensor &B) |
|
tvm::te::Tensor | operator>> (const tvm::PrimExpr &A, const tvm::te::Tensor &B) |
|
tvm::te::Tensor | operator>> (const tvm::te::Tensor &A, const tvm::PrimExpr &B) |
|
tvm::PrimExpr | greater (const tvm::PrimExpr &a, const tvm::PrimExpr &b) |
|
tvm::te::Tensor | greater (const tvm::te::Tensor &A, const tvm::te::Tensor &B, std::string name="T_" "greater", std::string tag=kBroadcast) |
|
tvm::te::Tensor | greater (const tvm::te::Tensor &A, const tvm::PrimExpr &B, std::string name="T_" "greater", std::string tag=kElementWise) |
|
tvm::te::Tensor | greater (const tvm::PrimExpr &A, const tvm::te::Tensor &B, std::string name="T_" "greater", std::string tag=kElementWise) |
|
tvm::PrimExpr | less (const tvm::PrimExpr &a, const tvm::PrimExpr &b) |
|
tvm::te::Tensor | less (const tvm::te::Tensor &A, const tvm::te::Tensor &B, std::string name="T_" "less", std::string tag=kBroadcast) |
|
tvm::te::Tensor | less (const tvm::te::Tensor &A, const tvm::PrimExpr &B, std::string name="T_" "less", std::string tag=kElementWise) |
|
tvm::te::Tensor | less (const tvm::PrimExpr &A, const tvm::te::Tensor &B, std::string name="T_" "less", std::string tag=kElementWise) |
|
tvm::PrimExpr | equal (const tvm::PrimExpr &a, const tvm::PrimExpr &b) |
|
tvm::te::Tensor | equal (const tvm::te::Tensor &A, const tvm::te::Tensor &B, std::string name="T_" "equal", std::string tag=kBroadcast) |
|
tvm::te::Tensor | equal (const tvm::te::Tensor &A, const tvm::PrimExpr &B, std::string name="T_" "equal", std::string tag=kElementWise) |
|
tvm::te::Tensor | equal (const tvm::PrimExpr &A, const tvm::te::Tensor &B, std::string name="T_" "equal", std::string tag=kElementWise) |
|
tvm::PrimExpr | not_equal (const tvm::PrimExpr &a, const tvm::PrimExpr &b) |
|
tvm::te::Tensor | not_equal (const tvm::te::Tensor &A, const tvm::te::Tensor &B, std::string name="T_" "not_equal", std::string tag=kBroadcast) |
|
tvm::te::Tensor | not_equal (const tvm::te::Tensor &A, const tvm::PrimExpr &B, std::string name="T_" "not_equal", std::string tag=kElementWise) |
|
tvm::te::Tensor | not_equal (const tvm::PrimExpr &A, const tvm::te::Tensor &B, std::string name="T_" "not_equal", std::string tag=kElementWise) |
|
tvm::PrimExpr | greater_equal (const tvm::PrimExpr &a, const tvm::PrimExpr &b) |
|
tvm::te::Tensor | greater_equal (const tvm::te::Tensor &A, const tvm::te::Tensor &B, std::string name="T_" "greater_equal", std::string tag=kBroadcast) |
|
tvm::te::Tensor | greater_equal (const tvm::te::Tensor &A, const tvm::PrimExpr &B, std::string name="T_" "greater_equal", std::string tag=kElementWise) |
|
tvm::te::Tensor | greater_equal (const tvm::PrimExpr &A, const tvm::te::Tensor &B, std::string name="T_" "greater_equal", std::string tag=kElementWise) |
|
tvm::PrimExpr | less_equal (const tvm::PrimExpr &a, const tvm::PrimExpr &b) |
|
tvm::te::Tensor | less_equal (const tvm::te::Tensor &A, const tvm::te::Tensor &B, std::string name="T_" "less_equal", std::string tag=kBroadcast) |
|
tvm::te::Tensor | less_equal (const tvm::te::Tensor &A, const tvm::PrimExpr &B, std::string name="T_" "less_equal", std::string tag=kElementWise) |
|
tvm::te::Tensor | less_equal (const tvm::PrimExpr &A, const tvm::te::Tensor &B, std::string name="T_" "less_equal", std::string tag=kElementWise) |
|
Array< PrimExpr > | InferEinsumShape (const std::string &subscripts, const std::vector< Array< PrimExpr >> &operands) |
| Compute the shape of the output. More...
|
|
Tensor | einsum (const std::string &subscripts_str, const Array< Tensor > inputs, std::string name="T_einsum", std::string tag=kEinsum) |
| Evaluates the Einstein summation convention on the operands. More...
|
|
Tensor | exp (const Tensor &x, std::string name="T_" "exp", std::string tag=kElementWise) |
|
Tensor | erf (const Tensor &x, std::string name="T_" "erf", std::string tag=kElementWise) |
|
Tensor | sigmoid (const Tensor &x, std::string name="T_" "sigmoid", std::string tag=kElementWise) |
|
Tensor | sqrt (const Tensor &x, std::string name="T_" "sqrt", std::string tag=kElementWise) |
|
Tensor | log (const Tensor &x, std::string name="T_" "log", std::string tag=kElementWise) |
|
Tensor | log2 (const Tensor &x, std::string name="T_" "log2", std::string tag=kElementWise) |
|
Tensor | log10 (const Tensor &x, std::string name="T_" "log10", std::string tag=kElementWise) |
|
Tensor | floor (const Tensor &x, std::string name="T_" "floor", std::string tag=kElementWise) |
|
Tensor | ceil (const Tensor &x, std::string name="T_" "ceil", std::string tag=kElementWise) |
|
Tensor | round (const Tensor &x, std::string name="T_" "round", std::string tag=kElementWise) |
|
Tensor | trunc (const Tensor &x, std::string name="T_" "trunc", std::string tag=kElementWise) |
|
Tensor | abs (const Tensor &x, std::string name="T_" "abs", std::string tag=kElementWise) |
|
Tensor | cos (const Tensor &x, std::string name="T_" "cos", std::string tag=kElementWise) |
|
Tensor | cosh (const Tensor &x, std::string name="T_" "cosh", std::string tag=kElementWise) |
|
Tensor | tan (const Tensor &x, std::string name="T_" "tan", std::string tag=kElementWise) |
|
Tensor | sin (const Tensor &x, std::string name="T_" "sin", std::string tag=kElementWise) |
|
Tensor | sinh (const Tensor &x, std::string name="T_" "sinh", std::string tag=kElementWise) |
|
Tensor | acos (const Tensor &x, std::string name="T_" "acos", std::string tag=kElementWise) |
|
Tensor | acosh (const Tensor &x, std::string name="T_" "acosh", std::string tag=kElementWise) |
|
Tensor | asin (const Tensor &x, std::string name="T_" "asin", std::string tag=kElementWise) |
|
Tensor | asinh (const Tensor &x, std::string name="T_" "asinh", std::string tag=kElementWise) |
|
Tensor | atan (const Tensor &x, std::string name="T_" "atan", std::string tag=kElementWise) |
|
Tensor | atanh (const Tensor &x, std::string name="T_" "atanh", std::string tag=kElementWise) |
|
Tensor | isnan (const Tensor &x, std::string name="T_" "isnan", std::string tag=kElementWise) |
|
Tensor | tanh (const Tensor &x, std::string name="T_" "tanh", std::string tag=kElementWise) |
|
Tensor | isfinite (const Tensor &x, std::string name="T_" "isfinite", std::string tag=kElementWise) |
|
Tensor | isinf (const Tensor &x, std::string name="T_" "isinf", std::string tag=kElementWise) |
|
Tensor | fast_tanh_float (const Tensor &in, std::string name, std::string tag) |
| Fast_tanh_float implementation from Eigen https://github.com/eigenteam/eigen-git-mirror/blob/master/Eigen/src/Core/MathFunctionsImpl.h#L26. More...
|
|
Tensor | fast_tanh (const Tensor &x, std::string name="T_fast_tanh", std::string tag=kElementWise) |
| Creates an operation that returns hyperbolic tanh of a given tensor. More...
|
|
Tensor | identity (const Tensor &x, std::string name="T_identity", std::string tag=kElementWise) |
| Creates an operation that returns identity of a given tensor. More...
|
|
Tensor | negative (const Tensor &x, std::string name="T_negative", std::string tag=kElementWise) |
| Creates an operation that returns the negation of a given tensor. More...
|
|
Tensor | logical_not (const Tensor &x, std::string name="T_logical_not", std::string tag=kElementWise) |
| Creates an operation that returns the logical NOT of a given tensor. More...
|
|
Tensor | bitwise_not (const Tensor &x, std::string name="T_bitwise_not", std::string tag=kElementWise) |
| Creates an operation that returns the bitwise NOT of a given tensor. More...
|
|
Tensor | sign (const Tensor &x, std::string name="T_sign", std::string tag=kElementWise) |
| Returns the sign of the tensor. More...
|
|
Tensor | rsqrt (const Tensor &x, std::string name="tensor", std::string tag=kElementWise) |
| Creates an operation that returns rsqrt of a given tensor. More...
|
|
Tensor | clip (const Tensor &x, const PrimExpr &a_min, const PrimExpr &a_max, std::string name="T_clip", std::string tag=kElementWise) |
| Creates an operation that clips each element of a tensor to the interval [a_min, a_max]. More...
|
|
Tensor | cast (const Tensor &x, DataType type, std::string name="T_cast", std::string tag=kElementWise) |
| Cast each element of x to the given type. If expr is scalar and type is a corresponding vector type, a Broadcast is generated, otherwise a Cast is generated. More...
|
|
Tensor | reinterpret (const Tensor &x, DataType type, std::string name="tensor", std::string tag=kElementWise) |
| Reinterpret each element of x to the given type. More...
|
|
Tensor | elemwise_sum (const Array< Tensor > &xs, std::string name="T_elemwise_sum", std::string tag=kElementWise) |
| Creates an operation that sum each element of a tensor. More...
|
|
Tensor | full (const Array< PrimExpr > &shape, DataType dtype, const PrimExpr fill_value, std::string name="T_full", std::string tag=kElementWise) |
| Creates an operation that fill a tensor with fill_value. More...
|
|
Tensor | full_like (const Tensor &x, const PrimExpr fill_value, std::string name="T_full_like", std::string tag=kElementWise) |
| Creates an operation that construct a tensor with same shape as input tensor, then fill a tensor with fill_value. More...
|
|
Tensor | fast_exp_float32 (const Tensor &_x, std::string name, std::string tag) |
| Fast exponential function implementation. More...
|
|
Tensor | fast_exp (const Tensor &x, std::string name="T_fast_exp", std::string tag=kElementWise) |
| Fast exponential function implementation. More...
|
|
Tensor | fast_erf_float32 (const Tensor &data, std::string name, std::string tag) |
| Fast_erf_float expression from Eigen. More...
|
|
Tensor | fast_erf_float16 (const Tensor &data, std::string name, std::string tag) |
| Fast_erf_float expression from Eigen for float16. More...
|
|
Tensor | fast_erf (const Tensor &x, std::string name="T_fast_erf", std::string tag=kElementWise) |
| Fast erf implementation. More...
|
|
template<typename T > |
tvm::te::Tensor | relu (const tvm::te::Tensor &t, T threshold=static_cast< T >(0), std::string name="T_relu", std::string tag=kElementWise) |
| Creates an operation that performs a rectified linear unit. More...
|
|
tvm::te::Tensor | leaky_relu (const tvm::te::Tensor &t, double alpha=0.1, std::string name="T_leaky_relu", std::string tag=kElementWise) |
| Creates an operation that performs a leaky rectified linear unit. More...
|
|
tvm::te::Tensor | prelu (const tvm::te::Tensor &x, const tvm::te::Tensor &slope, const int axis=1, std::string name="T_prelu", std::string tag=kBroadcast) |
| Creates an operation that performs a parametric rectified linear unit. More...
|
|
tvm::te::Tensor | pad (const tvm::te::Tensor &t, const tvm::Array< tvm::PrimExpr > &pad_before, tvm::Array< tvm::PrimExpr > pad_after=tvm::Array< tvm::PrimExpr >(), PrimExpr pad_value=PrimExpr(), std::string name="T_pad", std::string tag=kElementWise, std::string pad_mode="constant", const Array< PrimExpr > *dyn_output_shape=nullptr) |
| Creates an operation that performs padding. More...
|
|
tvm::te::Tensor | conv2d_nchw (const tvm::te::Tensor &I, const tvm::te::Tensor &W, int pad_h=0, int pad_w=0, int stride_h=1, int stride_w=1, std::string name="T_conv2d_nchw", std::string tag=kConv2dNCHW) |
| Creates an operation that performs a 2-D convolution with an NCHW-layout. More...
|
|
tvm::te::Tensor | conv2d_hwcn (const tvm::te::Tensor &I, const tvm::te::Tensor &W, int pad_h=0, int pad_w=0, int stride_h=1, int stride_w=1, std::string name="T_conv2d_hwcn", std::string tag=kConv2dHWCN) |
| Creates an operation for 2-D convolution layer with an HWCN-layout. More...
|
|
tvm::te::Tensor | depthwise_conv2d_nchw (const tvm::te::Tensor &I, const tvm::te::Tensor &W, int pad_h=0, int pad_w=0, int stride_h=1, int stride_w=1, std::string name="T_depthwise_conv2d_nchw", std::string tag=kDepthwiseConv2dNCHW) |
| Creates an operation that performs a 2-D depthwise convolution with an NCHW-layout. More...
|
|
tvm::te::Tensor | depthwise_conv2d_nhwc (const tvm::te::Tensor &I, const tvm::te::Tensor &W, int pad_h=0, int pad_w=0, int stride_h=1, int stride_w=1, std::string name="T_depthwise_conv2d_nhwc", std::string tag=kDepthwiseConv2dNHWC) |
|
tvm::te::Tensor | group_conv2d_ngchw (const tvm::te::Tensor &I, const tvm::te::Tensor &W, int pad_h=0, int pad_w=0, int stride_h=1, int stride_w=1, std::string name="T_group_conv2d_ngchw", std::string tag=kGroupConv2d) |
| Creates an operation that performs a 2-D group convolution with an NGCHW-layout. More...
|
|
tvm::te::Tensor | space_to_batch_nd (const tvm::te::Tensor &data, const tvm::Array< Integer > &block_shape, const tvm::Array< tvm::PrimExpr > &pad_before, const tvm::Array< tvm::PrimExpr > &pad_after, PrimExpr pad_value=PrimExpr(), std::string name="space_to_batch_nd", std::string tag=kInjective) |
| Divide spatial dimensions of the input into a grid of blocks. More...
|
|
tvm::te::Tensor | batch_to_space_nd (const tvm::te::Tensor &data, const tvm::Array< Integer > &block_shape, const tvm::Array< tvm::PrimExpr > &crop_begin_list, const tvm::Array< tvm::PrimExpr > &crop_end_list, std::string name="batch_to_space_nd", std::string tag=kInjective) |
| Reshape the batch dimension into spatial dimensions. More...
|
|
Tensor | nll_loss (const Tensor &predictions, const Tensor &targets, const Tensor &weights, std::string reduction="mean", int ignore_index=-100, const std::string name="nll_loss", const std::string tag=kBroadcast) |
| Negative log likelihood loss. More...
|
|
std::vector< int > | GetRealAxis (int ndim, const Array< Integer > &axis) |
| Convert a reduction axis which could be empty or have negative elements into a real axis with valid dimension indices. More...
|
|
Array< IterVar > | MakeReduceAxes (const std::vector< int > &real_axis, const Tensor &data) |
| Enumerate the axes for a reduce op. More...
|
|
Array< PrimExpr > | MakeReduceTargetShape (const std::vector< int > &real_axis, const Tensor &data, bool keepdims, bool atleast1d) |
| Calculate the target shape for a reduce op. More...
|
|
Tensor | DoCommReduce (const Tensor &data, FReduce func, const Array< PrimExpr > &target_shape, const std::vector< int > &reduce_axes, const std::vector< int > &squeeze_axes, Span span=Span()) |
| Create a reduction operation. More...
|
|
Tensor | CommReduce (const Tensor &data, const Array< Integer > &axis, FReduce func, bool keepdims, bool atleast1d) |
| Create a reduction operation. More...
|
|
Tensor | CommReduceIdx (const Tensor &data, const Array< Integer > &axis, FCommReduce func, bool keepdims, bool atleast1d) |
| Create an index reduction operation. More...
|
|
FCommReduce | MakeCommReducer (FCombine fcombine, FIdentity fidentity, std::string name="reduce") |
| Create a commutative reducer for a reduction. More...
|
|
PrimExpr | MinOp (PrimExpr source, Array< IterVar > axis, Array< PrimExpr > init={}, Span span=Span()) |
| Wrap tvm::min to ensure we get the correct overload. More...
|
|
PrimExpr | MaxOp (PrimExpr source, Array< IterVar > axis, Array< PrimExpr > init={}, Span span=Span()) |
| Wrap tvm::max to ensure we get the correct overload. More...
|
|
PrimExpr | ProdOp (PrimExpr source, Array< IterVar > axis, Array< PrimExpr > init={}, Span span=Span()) |
| Wrap tvm::prod to ensure we get the correct overload. More...
|
|
Tensor | sum (const Tensor &data, const Array< Integer > &axis, bool keepdims=false, bool atleast1d=false) |
| Creates an operation that sums array elements over a given axis. More...
|
|
Tensor | collapse_sum (const Tensor &data, Array< PrimExpr > target_shape) |
|
Tensor | all (const Tensor &data, const Array< Integer > &axis, bool keepdims=false, bool atleast1d=false) |
| Creates an operation that computes the logical AND of elements over a given axis. More...
|
|
Tensor | any (const Tensor &data, const Array< Integer > &axis, bool keepdims=false, bool atleast1d=false) |
| Creates an operation that computes the logical OR of elements over a given axis. More...
|
|
Tensor | min (const Tensor &data, const Array< Integer > &axis, bool keepdims=false, bool atleast1d=false) |
| Creates an operation that finds the minimum of elements over a given axis. More...
|
|
Tensor | max (const Tensor &data, const Array< Integer > &axis, bool keepdims=false, bool atleast1d=false) |
| Creates an operation that finds the maximum of elements over a given axis. More...
|
|
FCommReduce | MakeArgminReducer (bool select_last_index=false) |
|
Tensor | argmin (const Tensor &data, const Array< Integer > &axis, bool keepdims=false, bool atleast1d=false, bool select_last_index=false) |
| Creates an operation that finds the indices of the minimum values over a given axis. More...
|
|
FCommReduce | MakeArgmaxReducer (bool select_last_index=false) |
|
Tensor | argmax (const Tensor &data, const Array< Integer > &axis, bool keepdims=false, bool atleast1d=false, bool select_last_index=false) |
| Creates an operation that finds the indices of the maximum values over a given axis. More...
|
|
Tensor | prod (const Tensor &data, const Array< Integer > &axis, bool keepdims=false, bool atleast1d=false) |
| Creates product operation over given axis. More...
|
|
FCommReduce | MakeTupleSumReducer () |
| Create communitive reducer summing over tuples. More...
|
|
bool | is_broadcast (std::string tag) |
|
bool | is_injective (std::string tag) |
|
Tensor | sliding_window (const Tensor &x, int axis, Array< Integer > window_shape, Array< Integer > strides, std::string name="T_sliding_window", std::string tag="") |
| Creates an operation to slide a window over the input x. More...
|
|
Tensor | expand_dims (const Tensor &x, int axis, int num_newaxis=1, std::string name="T_expand_dims", std::string tag=kBroadcast) |
| Creates an operation to insert new dimensions of length 1. More...
|
|
Tensor | transpose (const Tensor &x, Array< Integer > axes, std::string name="T_transpose", std::string tag=kInjective) |
| Permute the dimensions of an array. More...
|
|
Tensor | reverse_sequence (const Tensor &x, const Tensor &seq_lengths, int seq_axis=1, int batch_axis=0, std::string name="T_reverse_sequence", std::string tag=kInjective) |
| Reverse the tensor for variable length slices. Input is first sliced along batch axis and then elements are reversed along seq axis. More...
|
|
Tensor | reshape (const Tensor &x, Array< PrimExpr > newshape, std::string name="T_reshape", std::string tag=kInjective) |
| Reshape a tensor. More...
|
|
Tensor | unravel_index (const Tensor &x, const Tensor &shape, std::string name="T_unravel", std::string tag=kInjective) |
| Converts a flat index or array of flat indices into a tuple of coordinate arrays. More...
|
|
Tensor | squeeze (const Tensor &x, Array< Integer > axis, bool atleast1d=false, std::string name="T_squeeze", std::string tag=kInjective) |
| Remove size 1 dimensions from the shape of a tensor. The removed dimensions must have a constant size of 1. More...
|
|
Tensor | concatenate (const Array< Tensor > &inputs, int axis=0, std::string name="T_concat", std::string tag=kInjective) |
| Join a sequence of tensors along an existing axis. More...
|
|
Tensor | stack (const Array< Tensor > &inputs, int axis=0, std::string name="T_stack", std::string tag=kInjective) |
| Join a sequence of tensors along a new axis. More...
|
|
Array< Tensor > | split (const Tensor &x, Array< PrimExpr > split_indices, int axis, std::string name="T_split", std::string tag=kInjective) |
| Split a tensor into multiple sub-tensors. More...
|
|
PrimExpr | DynamicCanonicalizeIndex (PrimExpr index, PrimExpr extent, PrimExpr stride) |
|
int64_t | StaticCanonicalizeIndex (int64_t index, int64_t extent, int64_t stride) |
|
PrimExpr | CanonicalizeIndex (PrimExpr index, PrimExpr extent, PrimExpr stride) |
|
PrimExpr | GetLength (PrimExpr begin, PrimExpr end, PrimExpr stride, PrimExpr extent, bool assume_inbound=true) |
|
Tensor | dynamic_strided_slice_with_axes (const Tensor &x, const Array< PrimExpr > &begin, const Array< PrimExpr > &end, const Array< PrimExpr > &strides, const Array< Integer > &axes, bool assume_inbound=true, std::string name="T_dynamic_strided_slice_with_axes", std::string tag=kInjective) |
| strided_slice of a tensor where begin/end/stride can be mixed static and dynamic More...
|
|
Tensor | dynamic_strided_slice (const Tensor &x, const Array< PrimExpr > &begin, const Array< PrimExpr > &end, const Array< PrimExpr > &strides, bool assume_inbound=true, std::string name="T_dynamic_strided_slice", std::string tag=kInjective) |
| strided_slice of a tensor where begin/end/stride can be mixed static and dynamic More...
|
|
te::Tensor | dynamic_strided_slice (const te::Tensor &x, const te::Tensor &begin, const te::Tensor &end, const te::Tensor &strides, bool assume_inbound=true, std::string name="T_strided_slice_dynamic", std::string tag=topi::kInjective) |
| strided_slice of a tensor with dynamic begin/end/stride More...
|
|
Array< PrimExpr > | StridedSliceOutputShape (const Array< PrimExpr > &ishape, const Array< Integer > &begin, const Array< Integer > &end, const Array< Integer > &strides, const Array< Integer > &axes, const std::string &slice_mode) |
| Calculate the output shape of strided_slice, the entry point for Relay type relation. More...
|
|
Tensor | strided_slice_with_axes (const Tensor &x, const Array< Integer > &begin, const Array< Integer > &end, const Array< Integer > &strides, const Array< Integer > &axes, std::string slice_mode="end", std::string name="T_strided_slice_with_axes", std::string tag=kInjective) |
| strided_slice of a tensor More...
|
|
Tensor | strided_slice (const Tensor &x, const Array< Integer > &begin, const Array< Integer > &end, const Array< Integer > &strides, std::string slice_mode="end", std::string name="T_strided_slice", std::string tag=kInjective) |
| strided_slice of a tensor More...
|
|
Array< Tensor > | split_sections (const Tensor &x, int num_sections, int axis, std::string name="T_split_sections", std::string tag=kInjective) |
| Split a tensor into a number of sub-tensors. More...
|
|
Tensor | take (const Tensor &a, const Tensor &indices, int batch_dims, std::string mode="clip", std::string name="T_take", std::string tag=kInjective) |
| Take elements from an flattened input array when axis is None. More...
|
|
Tensor | sequence_mask (const Tensor &data, const Tensor &valid_length, double mask_value, int axis, std::string name="T_sequence_mask", std::string tag=kInjective) |
| Mask the out-of-boundary elements of each sequence. More...
|
|
Tensor | take (const Tensor &a, Variant< Tensor, PrimExpr > indices, int batch_dims, int axis, std::string mode="clip", std::string name="T_take", std::string tag=kInjective) |
| Take elements from an array along an axis. More...
|
|
Tensor | where (const Tensor &condition, const Tensor &x, const Tensor &y, std::string name="T_where", std::string tag=kBroadcast) |
| Return the elements, either from x or y, depending on the condition. More...
|
|
Tensor | repeat (const Tensor &x, int repeats, int axis, std::string name="T_repeat", std::string tag=kBroadcast) |
| Creates an operation to repeat elements of an array. More...
|
|
Tensor | tile (const Tensor &x, Array< Integer > reps, std::string name="T_tile", std::string tag=kBroadcast) |
| Creates an operation to tile elements of an array. More...
|
|
Tensor | dyn_tile (const Tensor &x, Array< PrimExpr > new_shape, size_t rdim, std::string name="T_tile", std::string tag=kBroadcast) |
| Creates an operation to tile elements of an array. More...
|
|
Tensor | gather (const Tensor &data, int axis, const Tensor &indices, std::string name="T_gather", std::string tag=kInjective) |
| Gather values along given axis from given indices. More...
|
|
Tensor | gather_nd (const Tensor &data, const Tensor &indices, int batch_dims=0, std::string name="T_gather_nd", std::string tag=kInjective) |
| Gather elements from a n-dimension array. More...
|
|
tvm::te::Tensor | matmul (const tvm::te::Tensor &A, const tvm::te::Tensor &B, bool trans_a=false, bool trans_b=false, std::string name="T_matmul", std::string tag=kMatMul) |
| Creates an operation that calculates a matrix multiplication (row-major notation): A(i, k) * B(k, j), if trans_a == trans_b the usual transposed combinations, otherwise. More...
|
|
Tensor | tensordot (const Tensor &A, const tvm::te::Tensor &B, int axes=2, std::string name="T_tensordot", std::string tag=kMatMul) |
| A generalization of matrix multiplication to tensors. More...
|
|
Tensor | tensordot (const Tensor &A, const tvm::te::Tensor &B, Array< PrimExpr > A_axes, Array< PrimExpr > B_axes, std::string name="T_tensordot", std::string tag=kMatMul) |
| A generalization of matrix multiplication to tensors. More...
|
|
Tensor | arange (const PrimExpr &start, const PrimExpr &stop, const PrimExpr &step, DataType dtype, std::string name="T_arange", std::string tag=kInjective) |
|
Array< Tensor > | meshgrid (const Array< Tensor > &inputs, const std::string &indexing, std::string name="T_meshgrid", std::string tag=kInjective) |
| Produce grids by expanding input over dimensions defined by other inputs. More...
|
|
Tensor | layout_transform (const Tensor &src, const std::string &src_layout, const std::string &dst_layout, const std::string schedule_rule="None", const std::string name="T_layout_trans", const std::string tag=kInjective) |
| Transform the layout according to src_layout and dst_layout . More...
|
|
void | parse_auto_scheduler_layout (const String &layout, Array< PrimExpr > *shape, std::vector< std::string > *axes) |
| Utility function for auto_scheduler_layout_transform. More...
|
|
Tensor | auto_scheduler_layout_transform (const Tensor &src, const String &src_layout, const String &dst_layout, const String name="T_auto_scheduler_layout_trans", const String tag=kInjective) |
| Transform the auto-scheduler generated layout according to src_layout and dst_layout . More...
|
|
Tensor | meta_schedule_layout_transform (const Tensor &src, const tir::IndexMap &index_map, const String name="T_meta_schedule_layout_trans", const String tag=kInjective) |
| Transform the meta-schedule generated layout according to TIR's IndexMap. More...
|
|
Tensor | shape (const Tensor &src, DataType dtype, const std::string name="T_shape", const std::string tag=kInjective) |
| Get the shape of input tensor. More...
|
|
Tensor | ndarray_size (const Tensor &src, const DataType &dtype, const std::string &name="ndarray_size", const std::string &tag=kInjective) |
| Get the size of input tensor. More...
|
|
Tensor | one_hot (const Tensor &indices, const PrimExpr on_value, const PrimExpr off_value, int depth, int axis, const DataType &dtype, Array< PrimExpr > oshape=Array< PrimExpr >(), const std::string name="T_one_hot", const std::string tag=kInjective) |
| Returns a one-hot tensor where the locations repsented by indices take value on_value, other locations take value off_value. More...
|
|
Tensor | sparse_to_dense (const Tensor &sparse_indices, const Array< PrimExpr > &output_shape, const Tensor &sparse_values, const PrimExpr &default_value, const std::string name="T_sparse_to_dense", const std::string tag=kInjective) |
| Get a dense tensor. More...
|
|
Tensor | matrix_set_diag (const Tensor &input, const Tensor &diagonal, int k1, int k2, bool super_diag_right_align, bool sub_diag_right_align, const std::string name="T_matrix_set_diag", const std::string tag=kInjective) |
| Returns a tensor with the diagonal of input tensor replaced with the provided diagonals. More...
|
|
Tensor | adv_index (const Tensor &data, const Array< Tensor > &indices, const std::string name="advanced_index", const std::string tag=kInjective) |
| Numpy style advanced indexing with tensor. More...
|
|
Array< Integer > | ArrayOrInt (TVMArgValue arg) |
| Canonicalize an argument that may be Array<Expr> or int to Array<Expr> More...
|
|