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)
| 1160 | |
| 1161 | |
| 1162 | def lt(t, x): |
| 1163 | '''Elementi-wise comparison for t < x |
| 1164 | |
| 1165 | Args: |
| 1166 | t (Tensor): left hand side operand |
| 1167 | x (Tensor or float): right hand side operand |
| 1168 | |
| 1169 | Returns: |
| 1170 | a Tensor with each element being t[i] < x ? 1.0f:0.0f, |
| 1171 | or t[i] < x[i] ? 1.0f:0.0f |
| 1172 | ''' |
| 1173 | return t < x |
| 1174 | |
| 1175 | |
| 1176 | def le(t, x): |