shlogg · Early preview
Super Kai (Kazuya Ito) @superkai_kazuya

PyTorch Fmin() And Fmax(): Minimum And Maximum Elements

fmin() and fmax() in PyTorch: Get minimum or maximum elements from two tensors, ignoring NaN values. Use out argument for result tensor.

Buy Me a Coffee☕
*Memos:

My post explains min() and max().
My post explains minimum() and maximum().
My post explains argmin() and argmax().
My post explains aminmax(), amin() and amax().
My post explains kthvalue() and topk().
My post explains cummin() and cummax().

fmin() can get the 0D or more D tensor of zero or more minimum elements not prioritizing nan from two of the 0D or more D tensors of zero or more elements as shown below:
*Memos:

fmin() can be used with torch or a tensor.
The 1st argument(input) with torch or using a tensor(Required-Type:tensor of int, float or bool).
The 2nd...