Class SoftmaxCrossEntropyWithLogits

Inheritance Relationships

Base Type

Class Documentation

class SoftmaxCrossEntropyWithLogits : public mindspore::ops::PrimitiveC

Gets the softmax cross-entropy value between logits and labels with one-hot encoding. Refer to Python API mindspore.ops.SoftmaxCrossEntropyWithLogits for more details.

Public Functions

inline SoftmaxCrossEntropyWithLogits()

Constructor.

~SoftmaxCrossEntropyWithLogits() = default

Destructor.

inline void Init()

Init.