Program Listing for File gather.h

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

#ifndef MINDSPORE_CORE_OPS_GATHER_H_
#define MINDSPORE_CORE_OPS_GATHER_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 kNameGather = "Gather";
class MIND_API Gather : public BaseOperator {
 public:
  MIND_API_BASE_MEMBER(Gather);
  Gather() : BaseOperator(kNameGather) { InitIOName({"param", "indices", "axis"}, {"output"}); }
  void Init() const {}
  void set_batch_dims(int64_t batch_dims);
  int64_t get_batch_dims() const;
};

MIND_API abstract::AbstractBasePtr GatherInfer(const abstract::AnalysisEnginePtr &, const PrimitivePtr &primitive,
                                               const std::vector<abstract::AbstractBasePtr> &input_args);
}  // namespace ops
}  // namespace mindspore

#endif  // MINDSPORE_CORE_OPS_GATHER_H_