Program Listing for File arg_max_fusion.h
↰ Return to documentation for file (include/converter/include/ops/fusion/arg_max_fusion.h
)
#ifndef MINDSPORE_CORE_OPS_ARGMAX_FUSION_H_
#define MINDSPORE_CORE_OPS_ARGMAX_FUSION_H_
#include <memory>
#include <vector>
#include "ops/arg_max.h"
namespace mindspore {
namespace ops {
constexpr auto kNameArgMaxFusion = "ArgMaxFusion";
class MIND_API ArgMaxFusion : public Argmax {
public:
MIND_API_BASE_MEMBER(ArgMaxFusion);
ArgMaxFusion() : Argmax(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;
};
} // namespace ops
} // namespace mindspore
#endif // MINDSPORE_CORE_OPS_ARGMAX_FUSION_H_