Class SplitWithOverlap
Defined in File split_with_overlap.h
Inheritance Relationships
Base Type
public mindspore::ops::BaseOperator
Class Documentation
-
class SplitWithOverlap : public mindspore::ops::BaseOperator
All defined All operator prototype of lite.
Public Functions
-
inline SplitWithOverlap()
Constructor.
-
void Init(int64_t number_split, const std::vector<int64_t> &ratio, const std::vector<int64_t> &extend_top, const std::vector<int64_t> &extend_bottom, int64_t split_dim, int64_t stride, int64_t pad_top, bool trans_format)
Method to init the op’s attributes.
- Parameters
number_split – [in] Define the number split.
ratio – [in] Define the ratio.
extend_top – [in] Define the extend top.
extend_bottom – [in] Define the extend bottom.
split_dim – [in] Define the split dim.
stride – [in] Define the pad stride.
pad_top – [in] Define the pad top.
trans_format – [in] Define the trans format.
-
void set_ratio(const std::vector<int64_t> &ratio)
Method to set ratio attributes.
- Parameters
ratio – [in] Define the ratio.
-
void set_extend_top(const std::vector<int64_t> &extend_top)
Method to set extend_top attributes.
- Parameters
extend_top – [in] Define the extend top.
-
void set_extend_bottom(const std::vector<int64_t> &extend_bottom)
Method to set extend_bottom attributes.
- Parameters
extend_bottom – [in] Define the extend bottom.
-
void set_number_split(int64_t number_split)
Method to set number_split attributes.
- Parameters
number_split – [in] Define the number split.
-
void set_split_dim(int64_t split_dim)
Method to set split_dim attributes.
- Parameters
split_dim – [in] Define the split dim.
-
void set_split_stride(int64_t stride)
Method to set stride attributes.
- Parameters
stride – [in] Define the stride.
-
void set_pad_top(int64_t pad_top)
Method to set pad_top attributes.
- Parameters
pad_top – [in] Define the pad top.
-
void set_trans_format(bool trans_format)
Method to set trans_format attributes.
- Parameters
trans_format – [in] Define the trans format.
-
std::vector<int64_t> get_ratio() const
Method to get ratio attributes.
- Returns
ratio attributes.
-
std::vector<int64_t> get_extend_top() const
Method to get extend_top attributes.
- Returns
extend_top attributes.
-
std::vector<int64_t> get_extend_bottom() const
Method to get extend_bottom attributes.
- Returns
extend_bottom attributes.
-
int64_t get_number_split() const
Method to get number_split attributes.
- Returns
number_split attributes.
-
int64_t get_split_dim() const
Method to get split_dim attributes.
- Returns
split_dim attributes.
-
int64_t get_split_stride() const
Method to get split_stride attributes.
- Returns
split_stride attributes.
-
int64_t get_pad_top() const
Method to get pad_top attributes.
- Returns
pad_top attributes.
-
bool get_trans_format() const
Method to get trans_format attributes.
- Returns
trans_format attributes.
-
inline SplitWithOverlap()