vmin
Description
Returns the min between two tensors element-wise.
Prototype
vmin(lhs, rhs)
Parameters
- lhs: a tvm.tensor for the left tensor
- rhs: a tvm.tensor for the right tensor
- The tensors must have the same data type and shape.
Atlas training product : supports float16, float32, and int32.Atlas inference product : supports float16, int16, float32, and int32.Atlas 200I/500 A2 inference product : supports float16, float32, and int32.Atlas A2 training product /Atlas A2 inference product : supports float16, float32, and int32.Atlas A3 training product /Atlas A3 inference product : supports float16, float32, and int32.
Returns
res_tensor: a tvm.tensor for the result tensor
Restrictions
None
Applicability
Example
from tbe import tvm from tbe import dsl shape = (1024,1024) input_dtype = "float16" data1 = tvm.placeholder(shape, name="data1", dtype=input_dtype) data2 = tvm.placeholder(shape, name="data2", dtype=input_dtype) res = dsl.vmin(data1, data2)
Parent topic: Math Compute APIs