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

Function min

python/tvm/topi/reduction.py:145–167  ·  view source on GitHub ↗

Minimum of array elements over a given axis or a list of axes Parameters ---------- data : tvm.te.Tensor The input tvm tensor axis : None or int or tuple of int Axis or axes along which a minimum operation is performed. The default, axis=None, will find the

(data, axis=None, keepdims=False)

Source from the content-addressed store, hash-verified

143
144
145def min(data, axis=None, keepdims=False):
146 """Minimum of array elements over a given axis or a list of axes
147
148 Parameters
149 ----------
150 data : tvm.te.Tensor
151 The input tvm tensor
152
153 axis : None or int or tuple of int
154 Axis or axes along which a minimum operation is performed.
155 The default, axis=None, will find the minimum element from all of the elements of the
156 input array. If axis is negative it counts from the last to the first axis.
157
158 keepdims : bool
159 If this is set to True, the axes which are reduced are left in the result as dimensions
160 with size one.
161 With this option, the result will broadcast correctly against the input array.
162
163 Returns
164 -------
165 ret : tvm.te.Tensor
166 """
167 return cpp.min(data, axis, keepdims)
168
169
170def argmax(data, axis=None, keepdims=False, select_last_index=False):

Callers 15

_download_progressFunction · 0.50
emitMethod · 0.50
enumerate_gemm_operatorsFunction · 0.50
select_opMethod · 0.50
emitMethod · 0.50
select_opMethod · 0.50
get_at_depthMethod · 0.50
try_find_inst_naryFunction · 0.50
applyMethod · 0.50
applyMethod · 0.50

Calls 1

minMethod · 0.80

Tested by 14

rowwise_quant_fp8_e4m3Function · 0.40
blockwise_quant_fp8_e4m3Function · 0.40
blockwise_matmulFunction · 0.40
blockwise_bmmFunction · 0.40
test_nmsFunction · 0.40
test_nms_iou_suppressionFunction · 0.40
test_nms_max_boxes_limitFunction · 0.40
test_nms_score_thresholdFunction · 0.40
batch_processingMethod · 0.40
format_scriptFunction · 0.40
format_scriptFunction · 0.40