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

Function ge

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

1202
1203
1204def 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
1218def eq(t, x):

Callers 1

Cuda>Method · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected