逻辑函数#
真值判定#
Test whether all array elements along a given axis evaluate to True. |
|
Test whether any tensor element along a given axis evaluates to True. |
数组值判定#
Test element-wise for finiteness (not infinity or not Not a Number). |
|
Test element-wise for positive or negative infinity. |
|
Test element-wise for NaN and return result as a boolean tensor. |
数组类型判定#
Returns a bool tensor, where True if input element is complex. |
|
Returns a bool tensor, where True if input element is real. |
逻辑运算#
Compute the truth value of x1 AND x2 element-wise. |
|
Compute the truth value of x1 OR x2 element-wise. |
|
Compute the truth value of NOT x element-wise. |
|
Compute the truth value of x1 XOR x2, element-wise. |
比较#
Returns True if two tensors are element-wise equal within a tolerance. |
|
Returns a boolean tensor where two tensors are element-wise equal within a tolerance. |
|
True if two tensors have the same shape and elements, False otherwise. |
|
Return the truth value of (x1 > x2) element-wise. |
|
Return the truth value of (x1 >= x2) element-wise. |
|
Return the truth value of (x1 < x2) element-wise. |
|
Return the truth value of (x1 =< x2) element-wise. |
|
Return (x1 == x2) element-wise. |
|
Return (x1 != x2) element-wise. |