Program Listing for File resize_nearest_neighbor.h

Return to documentation for file (include/core/ops/resize_nearest_neighbor.h)

#ifndef MINDSPORE_CORE_OPS_RESIZE_NEAREST_NEIGHBOR_H_
#define MINDSPORE_CORE_OPS_RESIZE_NEAREST_NEIGHBOR_H_

#include <vector>
#include <memory>

#include "ops/base_operator.h"
#include "mindapi/base/types.h"

namespace mindspore {
namespace ops {
constexpr auto kNameResizeNearestNeighbor = "ResizeNearestNeighbor";
class MIND_API ResizeNearestNeighbor : public BaseOperator {
 public:
  MIND_API_BASE_MEMBER(ResizeNearestNeighbor);
  ResizeNearestNeighbor() : BaseOperator(kNameResizeNearestNeighbor) {}
  void Init(const std::vector<int64_t> &size, const bool align_corners = false);
  void set_size(const std::vector<int64_t> &size);
  void set_align_corners(const bool align_corners);
  std::vector<int64_t> get_size() const;
  bool get_align_corners() const;
};
}  // namespace ops
}  // namespace mindspore

#endif  // MINDSPORE_CORE_OPS_RESIZE_NEAREST_NEIGHBOR_H_