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)
| 143 | |
| 144 | |
| 145 | def 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 | |
| 170 | def argmax(data, axis=None, keepdims=False, select_last_index=False): |