Program Listing for File arg_max_fusion.h

Return to documentation for file (include/converter/include/infer/cxx_api/arg_max_fusion.h)

#ifndef LITE_CONVERTER_TOOLS_OPS_ARGMAX_FUSION_H_
#define LITE_CONVERTER_TOOLS_OPS_ARGMAX_FUSION_H_
#include <memory>
#include <vector>
#include "mindapi/base/type_id.h"
#include "mindapi/base/types.h"
#include "ops/base_operator.h"

namespace mindspore {
namespace ops {
constexpr auto kNameArgMaxFusion = "ArgMaxFusion";
class OPS_API ArgMaxFusion : public BaseOperator {
 public:
  MIND_API_BASE_MEMBER(ArgMaxFusion);
  ArgMaxFusion() : BaseOperator(kNameArgMaxFusion) { InitIOName({"x"}, {"output"}); }

  void Init(const bool keep_dims, const bool out_max_value, const int64_t top_k, const int64_t axis = -1);

  void set_keep_dims(const bool keep_dims);

  void set_out_max_value(const bool out_max_value);

  void set_top_k(const int64_t top_k);

  bool get_keep_dims() const;

  bool get_out_max_value() const;

  int64_t get_top_k() const;

  void set_axis(const int64_t axis);

  void set_output_type(const TypeId output_type);

  int64_t get_axis() const;

  TypeId get_output_type() const;
};
}  // namespace ops
}  // namespace mindspore

#endif  // LITE_CONVERTER_TOOLS_OPS_ARGMAX_FUSION_H_