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

Function le

python/singa/tensor.py:1176–1187  ·  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

1174
1175
1176def le(t, x):
1177 ''&#x27;Elementi-wise comparison for t <= x.
1178
1179 Args:
1180 t (Tensor): left hand side operand
1181 x (Tensor or float): right hand side operand
1182
1183 Returns:
1184 a Tensor with each element being t[i] <= x ? 1.0f:0.0f,
1185 or t[i] <= x[i] ? 1.0f:0.0f
1186 ''&#x27;
1187 return t <= x
1188
1189
1190def gt(t, x):

Callers 1

Cuda>Method · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected