floor
Description
Rounds down raw_tensor element-wise.
Prototype
floor(raw_tensor)
Parameters
raw_tensor: a tvm.tensor for the input tensor
Returns
res_tensor: result Tensor, tvm.tensor type
The default data type is int32. Data is output based on the specified output data type. For example, if the input data type is f162s8, the output data type is int8.
Restrictions
None
Applicability
Example
from tbe import tvm from tbe import dsl shape = (1024,1024) input_dtype = "float16" data = tvm.placeholder(shape, name="data", dtype=input_dtype) res = dsl.floor(data)