Program Listing for File range.h

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

#ifndef MINDSPORE_CORE_OPS_RANGE_H_
#define MINDSPORE_CORE_OPS_RANGE_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 kNameRange = "Range";
class MIND_API Range : public BaseOperator {
 public:
  MIND_API_BASE_MEMBER(Range);
  Range() : BaseOperator(kNameRange) {}
  void Init(const int64_t d_type, const int64_t start, const int64_t limit, const int64_t delta);
  void set_d_type(const int64_t d_type);
  void set_start(const int64_t start);
  void set_limit(const int64_t limit);
  void set_delta(const int64_t delta);
  int64_t get_d_type() const;
  int64_t get_start() const;
  int64_t get_limit() const;
  int64_t get_delta() const;

  int64_t get_maxlen() const;
};

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

#endif  // MINDSPORE_CORE_OPS_RANGE_H_