Elementi-wise comparison for t > x. Args: t (Tensor): left hand side operand x (Tensor or float): right hand side operand Returns: a Tensor with each element being t[i] > x ? 1.0f:0.0f, or t[i] > x[i] ? 1.0f:0.0f
(t, x)
| 1188 | |
| 1189 | |
| 1190 | def gt(t, x): |
| 1191 | '''Elementi-wise comparison for t > x. |
| 1192 | |
| 1193 | Args: |
| 1194 | t (Tensor): left hand side operand |
| 1195 | x (Tensor or float): right hand side operand |
| 1196 | |
| 1197 | Returns: |
| 1198 | a Tensor with each element being t[i] > x ? 1.0f:0.0f, |
| 1199 | or t[i] > x[i] ? 1.0f:0.0f |
| 1200 | ''' |
| 1201 | return t > x |
| 1202 | |
| 1203 | |
| 1204 | def ge(t, x): |