Program Listing for File softmax_cross_entropy_with_logits.h

Return to documentation for file (include/converter/include/ops/softmax_cross_entropy_with_logits.h)

#ifndef MINDSPORE_CORE_OPS_SOFTMAX_CROSS_ENTROPY_WITH_LOGITS_H_
#define MINDSPORE_CORE_OPS_SOFTMAX_CROSS_ENTROPY_WITH_LOGITS_H_
#include <map>
#include <memory>
#include <string>
#include <vector>

#include "mindapi/base/types.h"
#include "ops/base_operator.h"

namespace mindspore {
namespace ops {
constexpr auto kNameSoftmaxCrossEntropyWithLogits = "SoftmaxCrossEntropyWithLogits";
class MIND_API SoftmaxCrossEntropyWithLogits : public BaseOperator {
 public:
  MIND_API_BASE_MEMBER(SoftmaxCrossEntropyWithLogits);
  SoftmaxCrossEntropyWithLogits() : BaseOperator(kNameSoftmaxCrossEntropyWithLogits) {
    InitIOName({"features", "labels"}, {"loss", "backprop"});
  }
  void Init() const {}
};
using kPrimSoftmaxCrossEntropyWithLogitsPtr = std::shared_ptr<SoftmaxCrossEntropyWithLogits>;
}  // namespace ops
}  // namespace mindspore

#endif  // MINDSPORE_CORE_OPS_SOFTMAX_CROSS_ENTROPY_WITH_LOGITS_H_