Class AudioSpectrogram
- Defined in File audio_spectrogram.h 
Inheritance Relationships
Base Type
- public mindspore::ops::BaseOperator
Class Documentation
- 
class AudioSpectrogram : public mindspore::ops::BaseOperator
- AudioSpectrogram defined AudioSpectrogram operator prototype. - Public Functions - 
inline AudioSpectrogram()
- Constructor. 
 - 
void Init(const int64_t window_size, const int64_t stride, const bool mag_square)
- Method to init the op's attributes. - 参数
- window_size – [in] Define the size of window. 
- stride – [in] Define the step size of window to move. 
- mag_square – [in] Define a boolean value to indicate the output is the magnitude or the square of magnitude. 
 
 
 - 
void set_window_size(const int64_t window_size)
- Method to set window_size attribute. - 参数
- window_size – [in] Define the size of window. 
 
 - 
void set_stride(const int64_t stride)
- Method to set stride attribute. - 参数
- stride – [in] Define the step size of window to move. 
 
 - 
void set_mag_square(const bool mag_square)
- Method to set mag_square attribute. - 参数
- mag_square – [in] Define a boolean to indicate the output is the magnitude or the square of magnitude. 
 
 - 
int64_t get_window_size() const
- Method to get window_size attribute. - 返回
- the size of window. 
 
 - 
int64_t get_stride() const
- Method to get stride attribute. - 返回
- the step size. 
 
 - 
bool get_mag_square() const
- Method to get mag_square attribute. - 返回
- a boolean value. 
 
 
- 
inline AudioSpectrogram()