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

Function EQ

src/core/tensor/tensor_math.h:234–236  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

232/// out[i]=(in[i]==x)?1.f:0.f
233template <typename DType, typename Lang>
234void EQ(const Tensor &in, const DType x, Tensor *out, Context *ctx) {
235 LOG_FATAL("EQ", DType, Lang);
236}
237/// out[i]=(in[i]==in2[i])?1.f:0.f
238template <typename DType, typename Lang>
239void EQ(const Tensor &in, const Tensor &in2, Tensor *out, Context *ctx) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected