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

Function ComputeCrossEntropy

src/core/tensor/tensor_math.h:469–473  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

467// yisen todo
468template <typename DType, typename Lang>
469void ComputeCrossEntropy(bool int_target, const size_t batchsize,
470 const size_t dim, const Tensor &p, const Tensor &t,
471 Tensor *loss, Context *ctx) {
472 LOG_FATAL("ComputeCrossEntropy", DType, Lang);
473}
474
475template <typename DType, typename Lang>
476void SoftmaxCrossEntropyBwd(bool int_target, const size_t batchsize,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected