Program Listing for File crop_and_resize.h
↰ Return to documentation for file (include/converter/include/ops/crop_and_resize.h
)
#ifndef MINDSPORE_CORE_OPS_CROP_AND_RESIZE_H_
#define MINDSPORE_CORE_OPS_CROP_AND_RESIZE_H_
#include <memory>
#include <vector>
#include "mindapi/base/types.h"
#include "ops/base_operator.h"
namespace mindspore {
namespace ops {
constexpr auto kNameCropAndResize = "CropAndResize";
class MIND_API CropAndResize : public BaseOperator {
public:
MIND_API_BASE_MEMBER(CropAndResize);
CropAndResize() : BaseOperator(kNameCropAndResize) { InitIOName({"x", "boxes", "box_index", "crop_size"}, {"y"}); }
void Init(ResizeMethod method, float extrapolation_value);
void set_method(ResizeMethod method);
void set_extrapolation_value(float extrapolation_value);
ResizeMethod get_method() const;
float get_extrapolation_value() const;
};
} // namespace ops
} // namespace mindspore
#endif // MINDSPORE_CORE_OPS_CROP_AND_RESIZE_H_