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

Function LE

src/core/tensor/tensor_math.h:189–191  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

187/// out[i]=(in[i]<=x)?1.f:0.f
188template <typename DType, typename Lang>
189void LE(const Tensor &in, const DType x, Tensor *out, Context *ctx) {
190 LOG_FATAL("LE", DType, Lang);
191}
192/// out[i]=(in1[i]<=in2[i])?1.f:0.f
193template <typename DType, typename Lang>
194void LE(const Tensor &in1, const Tensor &in2, Tensor *out, Context *ctx) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected