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.
- Parameters
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.
- Parameters
window_size – [in] Define the size of window.
-
void set_stride(const int64_t stride)
Method to set stride attribute.
- Parameters
stride – [in] Define the step size of window to move.
-
void set_mag_square(const bool mag_square)
Method to set mag_square attribute.
- Parameters
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.
- Returns
the size of window.
-
int64_t get_stride() const
Method to get stride attribute.
- Returns
the step size.
-
bool get_mag_square() const
Method to get mag_square attribute.
- Returns
a boolean value.
-
inline AudioSpectrogram()