按某个轴求最小值,进行降维。
reduce_min(raw_tensor, axis, keepdims=False, impl_mode="high_performance")
Atlas 200/300/500 推理产品:支持的数据类型有float16、float32
Atlas 训练系列产品:支持的数据类型有float16、float32
Atlas 推理系列产品:支持的数据类型有float16、float32、int32
Atlas A2训练系列产品:支持的数据类型有float16、float32
默认值“high_performance”。
res_tensor:结果tensor,tvm.tensor类型。
由于计算平台的数据排布限制,reduce操作后的数据需要进行一次重排才能进行后续的操作。当前暂时不能在reduce操作后进行任何向量运算操作。
Atlas 200/300/500 推理产品
Atlas 训练系列产品
Atlas 推理系列产品
Atlas A2训练系列产品
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.reduce_min(data, axis=1)