MCPcopy Create free account
hub / github.com/apache/singa / lt

Function lt

python/singa/tensor.py:1162–1173  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

1160
1161
1162def lt(t, x):
1163 ''&#x27;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 ''&#x27;
1173 return t < x
1174
1175
1176def le(t, x):

Callers 1

Cuda>Method · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected