MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / Initialize

Method Initialize

tensorflow/lite/kernels/internal/mfcc.cc:36–44  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

34 dct_coefficient_count_(kDefaultDCTCoefficientCount) {}
35
36bool Mfcc::Initialize(int input_length, double input_sample_rate) {
37 bool initialized = mel_filterbank_.Initialize(
38 input_length, input_sample_rate, filterbank_channel_count_,
39 lower_frequency_limit_, upper_frequency_limit_);
40 initialized &=
41 dct_.Initialize(filterbank_channel_count_, dct_coefficient_count_);
42 initialized_ = initialized;
43 return initialized;
44}
45
46void Mfcc::Compute(const std::vector<double>& spectrogram_frame,
47 std::vector<double>* output) const {

Callers 3

EvalFunction · 0.45
PrepareFunction · 0.45
EvalFunction · 0.45

Calls

no outgoing calls

Tested by 2

PrepareFunction · 0.36
EvalFunction · 0.36