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

Function gt

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

1188
1189
1190def gt(t, x):
1191 '''Elementi-wise comparison for t > x.
1192
1193 Args:
1194 t (Tensor): left hand side operand
1195 x (Tensor or float): right hand side operand
1196
1197 Returns:
1198 a Tensor with each element being t[i] > x ? 1.0f:0.0f,
1199 or t[i] > x[i] ? 1.0f:0.0f
1200 '''
1201 return t > x
1202
1203
1204def ge(t, x):

Callers 1

Cuda>Method · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected