Home
last modified time | relevance | path

Searched refs:window_length (Results 1 – 11 of 11) sorted by relevance

/external/tensorflow/tensorflow/python/ops/signal/
Dwindow_ops.py34 def hann_window(window_length, periodic=True, dtype=dtypes.float32, name=None): argument
54 return _raised_cosine_window(name, 'hann_window', window_length, periodic,
59 def hamming_window(window_length, periodic=True, dtype=dtypes.float32, argument
80 return _raised_cosine_window(name, 'hamming_window', window_length, periodic,
84 def _raised_cosine_window(name, default_name, window_length, periodic, argument
108 with ops.name_scope(name, default_name, [window_length, periodic]):
109 window_length = ops.convert_to_tensor(window_length, dtype=dtypes.int32,
111 window_length.shape.assert_has_rank(0)
112 window_length_const = tensor_util.constant_value(window_length)
119 even = 1 - math_ops.mod(window_length, 2)
[all …]
/external/tensorflow/tensorflow/python/kernel_tests/signal/
Dspectral_ops_test.py49 def _np_frame(data, window_length, hop_length): argument
50 num_frames = 1 + int(np.floor((len(data) - window_length) // hop_length))
51 shape = (num_frames, window_length)
56 def _np_stft(data, fft_length, hop_length, window_length): argument
57 frames = SpectralOpsTest._np_frame(data, window_length, hop_length)
58 window = SpectralOpsTest._np_hann_periodic_window(window_length)
62 def _np_inverse_stft(stft, fft_length, hop_length, window_length): argument
65 frames = frames[..., :window_length]
67 [[0, max(0, window_length - frames.shape[-1])]], "constant")
68 window = SpectralOpsTest._np_hann_periodic_window(window_length)
[all …]
Dwindow_ops_test.py69 for window_length in self._window_lengths:
73 expected = np_window_fn(window_length,
75 actual = tf_window_fn(window_length, periodic=periodic,
/external/tensorflow/tensorflow/lite/kernels/internal/
Dspectrogram.cc30 void GetPeriodicHann(int window_length, std::vector<double>* window) { in GetPeriodicHann() argument
33 window->resize(window_length); in GetPeriodicHann()
34 for (int i = 0; i < window_length; ++i) { in GetPeriodicHann()
35 (*window)[i] = 0.5 - 0.5 * cos((2 * pi * i) / window_length); in GetPeriodicHann()
40 bool Spectrogram::Initialize(int window_length, int step_length) { in Initialize() argument
42 GetPeriodicHann(window_length, &window); in Initialize()
Dspectrogram.h53 bool Initialize(int window_length, int step_length);
/external/tensorflow/tensorflow/core/kernels/
Dspectrogram.cc29 void GetPeriodicHann(int window_length, std::vector<double>* window) { in GetPeriodicHann() argument
32 window->resize(window_length); in GetPeriodicHann()
33 for (int i = 0; i < window_length; ++i) { in GetPeriodicHann()
34 (*window)[i] = 0.5 - 0.5 * cos((2 * pi * i) / window_length); in GetPeriodicHann()
39 bool Spectrogram::Initialize(int window_length, int step_length) { in Initialize() argument
41 GetPeriodicHann(window_length, &window); in Initialize()
Dspectrogram.h54 bool Initialize(int window_length, int step_length);
/external/tensorflow/tensorflow/lite/experimental/micro/examples/micro_speech/simple_features/
Dsimple_features_generator.cc67 void CalculatePeriodicHann(int window_length, float* window_function) { in CalculatePeriodicHann() argument
68 for (int i = 0; i < window_length; ++i) { in CalculatePeriodicHann()
69 window_function[i] = 0.5 - 0.5 * cos((2 * kPi * i) / window_length); in CalculatePeriodicHann()
/external/tensorflow/tensorflow/lite/experimental/micro/examples/micro_speech/simple_features/fixed_point/
Dsimple_features_generator.cc109 void CalculatePeriodicHann(int window_length, int16_t* window_function) { in CalculatePeriodicHann() argument
110 for (int i = 0; i < window_length; ++i) { in CalculatePeriodicHann()
111 const float real_value = (0.5 - 0.5 * cos((2 * M_PI * i) / window_length)); in CalculatePeriodicHann()
/external/tensorflow/tensorflow/tools/api/golden/v2/
Dtensorflow.signal.pbtxt25 …argspec: "args=[\'window_length\', \'periodic\', \'dtype\', \'name\'], varargs=None, keywords=None…
29 …argspec: "args=[\'window_length\', \'periodic\', \'dtype\', \'name\'], varargs=None, keywords=None…
/external/tensorflow/tensorflow/tools/api/golden/v1/
Dtensorflow.signal.pbtxt25 …argspec: "args=[\'window_length\', \'periodic\', \'dtype\', \'name\'], varargs=None, keywords=None…
29 …argspec: "args=[\'window_length\', \'periodic\', \'dtype\', \'name\'], varargs=None, keywords=None…