Class QuantDTypeCast
Defined in File quant_dtype_cast.h
Inheritance Relationships
Base Type
public mindspore::ops::BaseOperator
Class Documentation
-
class QuantDTypeCast : public mindspore::ops::BaseOperator
QuantDTypeCast QuantDTypeCast the QuantDTypeCast operator prototype.
Public Functions
-
inline QuantDTypeCast()
Constructor.
-
void Init(const int64_t src_t, const int64_t dst_t)
Method to init the op’s attributes.
- Parameters
src_t – [in] Define the data type of input.
dst_t – [in] Define the data type of output.
-
void set_src_t(const int64_t src_t)
Method to set src_t attribute.
- Parameters
src_t – [in] Define the data type of input.
-
int64_t get_src_t() const
Method to get src_t attribute.
- Returns
the data type of input.
-
void set_dst_t(const int64_t dst_t)
Method to set dst_t attribute.
- Parameters
dst_t – [in] Define the data type of output.
-
int64_t get_dst_t() const
Method to get dst_t attribute.
- Returns
the data type of output.
-
inline QuantDTypeCast()