MCPcopy Create free account
hub / github.com/NVIDIA/DALI / Spectrogram

Method Spectrogram

dali/operators/signal/fft/spectrogram.cc:299–309  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

297
298template <>
299Spectrogram<CPUBackend>::Spectrogram(const OpSpec &spec)
300 : StatelessOperator<CPUBackend>(spec) {
301 auto layout = spec.GetArgument<std::string>("layout");
302 DALI_ENFORCE(layout == "tf" || layout == "ft",
303 make_string("Unexpected layout: ", layout));
304 bool time_major = layout == "tf";
305 if (time_major)
306 impl_ = std::make_unique<SpectrogramImplCpu<true>>(spec);
307 else
308 impl_ = std::make_unique<SpectrogramImplCpu<false>>(spec);
309}
310
311DALI_REGISTER_OPERATOR(Spectrogram, Spectrogram<CPUBackend>, CPU);
312

Callers 2

__init__Method · 0.45
__init__Method · 0.45

Calls 1

make_stringFunction · 0.50

Tested by

no test coverage detected