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)
| 1202 | |
| 1203 | |
| 1204 | def ge(t, x): |
| 1205 | '''Elementi-wise comparison for t >= x. |
| 1206 | |
| 1207 | Args: |
| 1208 | t (Tensor): left hand side operand |
| 1209 | x (Tensor or float): right hand side operand |
| 1210 | |
| 1211 | Returns: |
| 1212 | a Tensor with each element being t[i] >= x ? 1.0f:0.0f, |
| 1213 | or t[i] >= x[i] ? 1.0f:0.0f |
| 1214 | ''' |
| 1215 | return t >= x |
| 1216 | |
| 1217 | |
| 1218 | def eq(t, x): |