Home
last modified time | relevance | path

Searched refs:spectrogram (Results 1 – 25 of 28) sorted by relevance

12

/external/tensorflow/tensorflow/core/kernels/
Dmfcc_op.cc43 const Tensor& spectrogram = context->input(0); in Compute() local
44 OP_REQUIRES(context, spectrogram.dims() == 3, in Compute()
46 spectrogram.shape().DebugString())); in Compute()
54 const int spectrogram_channels = spectrogram.dim_size(2); in Compute()
55 const int spectrogram_samples = spectrogram.dim_size(1); in Compute()
56 const int audio_channels = spectrogram.dim_size(0); in Compute()
76 const float* spectrogram_flat = spectrogram.flat<float>().data(); in Compute()
Dspectrogram_op.cc44 Spectrogram spectrogram; in Compute() local
45 OP_REQUIRES(context, spectrogram.Initialize(window_size_, stride_), in Compute()
55 const int64 output_width = spectrogram.output_frequency_channels(); in Compute()
75 OP_REQUIRES(context, spectrogram.Reset(), in Compute()
85 spectrogram.ComputeSquaredMagnitudeSpectrogram( in Compute()
Dspectrogram_op_test.cc56 {spectrogram_op.spectrogram}, &outputs)); in TEST()
90 {spectrogram_op.spectrogram}, &outputs)); in TEST()
127 {spectrogram_op.spectrogram}, &outputs)); in TEST()
Dspectrogram_test.cc183 double GetMaximumAbsolute(const std::vector<std::vector<Sample>>& spectrogram) { in GetMaximumAbsolute() argument
185 for (int i = 0; i < spectrogram.size(); ++i) { in GetMaximumAbsolute()
186 for (int j = 0; j < spectrogram[i].size(); ++j) { in GetMaximumAbsolute()
187 double absolute_value = std::abs(spectrogram[i][j]); in GetMaximumAbsolute()
DBUILD5483 name = "spectrogram",
5484 srcs = ["spectrogram.cc"],
5485 hdrs = ["spectrogram.h"],
5527 ":spectrogram",
5544 ":spectrogram",
5949 "spectrogram.h",
6222 "spectrogram.cc",
/external/tensorflow/tensorflow/lite/kernels/
Daudio_spectrogram.cc48 internal::Spectrogram* spectrogram; member
61 data->spectrogram = new internal::Spectrogram; in Init()
68 delete params->spectrogram; in Free()
90 TF_LITE_ENSURE(context, params->spectrogram->Initialize(params->window_size, in Prepare()
102 output_size->data[2] = params->spectrogram->output_frequency_channels(); in Prepare()
118 TF_LITE_ENSURE(context, params->spectrogram->Initialize(params->window_size, in Eval()
126 const int64_t output_width = params->spectrogram->output_frequency_channels(); in Eval()
139 params->spectrogram->ComputeSquaredMagnitudeSpectrogram( in Eval()
/external/tensorflow/tensorflow/core/ops/
Daudio_ops.cc104 ShapeHandle spectrogram; in MfccShapeFn() local
105 TF_RETURN_IF_ERROR(c->WithRank(c->input(0), 3, &spectrogram)); in MfccShapeFn()
113 DimensionHandle spectrogram_channels = c->Dim(spectrogram, 0); in MfccShapeFn()
114 DimensionHandle spectrogram_length = c->Dim(spectrogram, 1); in MfccShapeFn()
/external/tensorflow/tensorflow/examples/wav_to_spectrogram/
DREADME.md4 spectrogram, and then save it out as a PNG image. A spectrogram is a
23 and writes out the image to the current directory as spectrogram.png.
30 To control how the spectrogram is created, you can specify the `--window_size`
Dwav_to_spectrogram.cc59 Output spectrogram = AudioSpectrogram(root.WithOpName("spectrogram"), in WavToSpectrogram() local
64 Output mul = Mul(root.WithOpName("mul"), spectrogram, brightness_placeholder); in WavToSpectrogram()
/external/tensorflow/tensorflow/core/api_def/base_api/
Dapi_def_Mfcc.pbtxt4 name: "spectrogram"
42 summary: "Transforms a spectrogram into a form that\'s useful for speech recognition."
46 taking the spectrum of a spectrogram (a 'cepstrum'), and discarding some of the
Dapi_def_AudioSpectrogram.pbtxt10 name: "spectrogram"
51 clockwise from a typical spectrogram. Time is descending down the Y axis, and
61 resulting spectrogram as a PNG image.
/external/tensorflow/tensorflow/examples/speech_commands/
Dinput_data_test.py267 spectrogram = results[0]
268 self.assertEqual(1, spectrogram.shape[0])
269 self.assertEqual(16, spectrogram.shape[1])
270 self.assertEqual(11, spectrogram.shape[2])
271 self.assertNear(0, spectrogram[0, 0, 0], 0.1)
272 self.assertNear(200, spectrogram[0, 0, 5], 0.1)
Dfreeze.py103 spectrogram = audio_ops.audio_spectrogram(
111 input=tf.expand_dims(spectrogram, -1),
118 spectrogram,
Dinput_data.py429 spectrogram = audio_ops.audio_spectrogram(
435 'spectrogram', tf.expand_dims(spectrogram, -1), max_outputs=1)
446 input=tf.expand_dims(spectrogram, -1),
456 spectrogram,
/external/tensorflow/tensorflow/core/kernels/spectrogram_test_data/
DBUILD2 # spectrogram test data packages.
DREADME1 The CSV spectrogram files in this directory are generated from the
/external/tensorflow/tensorflow/core/ops/compat/ops_history_v1/
DAudioSpectrogram.pbtxt8 name: "spectrogram"
DMfcc.pbtxt4 name: "spectrogram"
/external/tensorflow/tensorflow/core/ops/compat/ops_history_v2/
DAudioSpectrogram.pbtxt8 name: "spectrogram"
DMfcc.pbtxt4 name: "spectrogram"
/external/tensorflow/tensorflow/lite/micro/examples/micro_speech/train/
DREADME.md129 ![spectrogram diagram](https://storage.googleapis.com/download.tensorflow.org/example_images/spectr…
135 The recipe for creating the spectrogram data is that each frequency slice is
/external/tensorflow/tensorflow/lite/kernels/internal/
DBUILD788 "spectrogram.cc",
794 "spectrogram.h",
/external/tensorflow/tensorflow/go/op/
Dwrappers.go3036 func Mfcc(scope *Scope, spectrogram tf.Output, sample_rate tf.Output, optional ...MfccAttr) (output…
3047 spectrogram, sample_rate,
3104 …utput, window_size int64, stride int64, optional ...AudioSpectrogramAttr) (spectrogram tf.Output) {
/external/tensorflow/tensorflow/tools/api/golden/v2/
Dtensorflow.raw_ops.pbtxt2521 …argspec: "args=[\'spectrogram\', \'sample_rate\', \'upper_frequency_limit\', \'lower_frequency_lim…
/external/tensorflow/tensorflow/tools/api/golden/v1/
Dtensorflow.raw_ops.pbtxt2521 …argspec: "args=[\'spectrogram\', \'sample_rate\', \'upper_frequency_limit\', \'lower_frequency_lim…

12