Program Listing for File all_gather.h

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

#ifndef MINDSPORE_CORE_OPS_ALL_GATHER_H_
#define MINDSPORE_CORE_OPS_ALL_GATHER_H_

#include <memory>
#include <string>
#include <vector>
#include "mindapi/base/types.h"
#include "ops/base_operator.h"

namespace mindspore {
namespace ops {
constexpr auto kNameAllGather = "AllGather";
class MIND_API AllGather : public BaseOperator {
 public:
  MIND_API_BASE_MEMBER(AllGather);
  AllGather() : BaseOperator(kNameAllGather) { InitIOName({"input_x"}, {"output"}); }
  void Init() {}
  void set_group(const std::string &format);
  std::string get_group() const;
  void set_rank_size(int rank_size);
  int get_rank_size() const;
};
}  // namespace ops
}  // namespace mindspore
#endif  // MINDSPORE_CORE_OPS_ALL_GATHER_H_