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

Method Compute

tensorflow/core/kernels/mfcc.cc:47–63  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

45}
46
47void Mfcc::Compute(const std::vector<double>& spectrogram_frame,
48 std::vector<double>* output) const {
49 if (!initialized_) {
50 LOG(ERROR) << "Mfcc not initialized.";
51 return;
52 }
53 std::vector<double> working;
54 mel_filterbank_.Compute(spectrogram_frame, &working);
55 for (int i = 0; i < working.size(); ++i) {
56 double val = working[i];
57 if (val < kFilterbankFloor) {
58 val = kFilterbankFloor;
59 }
60 working[i] = log(val);
61 }
62 dct_.Compute(working, output);
63}
64
65} // namespace tensorflow

Callers 15

BM_SegmentReductionFunction · 0.45
TESTFunction · 0.45
CheckCollectMethod · 0.45
BM_SegmentReductionFunction · 0.45
BM_BiasGradFloatFunction · 0.45
BM_BiasGradHalfFunction · 0.45
RunOpKernelMethod · 0.45
BM_SparseToDenseFunction · 0.45
RunTestMethod · 0.45
BM_LRNFloatFunction · 0.45

Calls 2

logClass · 0.70
sizeMethod · 0.45

Tested by 15

BM_SegmentReductionFunction · 0.36
TESTFunction · 0.36
CheckCollectMethod · 0.36
BM_SegmentReductionFunction · 0.36
BM_BiasGradFloatFunction · 0.36
BM_BiasGradHalfFunction · 0.36
RunOpKernelMethod · 0.36
BM_SparseToDenseFunction · 0.36
RunTestMethod · 0.36
BM_LRNFloatFunction · 0.36