HomeSort by relevance Sort by last modified time
    Searched refs:window_length (Results 1 - 5 of 5) sorted by null

  /external/tensorflow/tensorflow/contrib/signal/python/ops/
window_ops.py 32 def hann_window(window_length, periodic=True, dtype=dtypes.float32, name=None):
36 window_length: A scalar `Tensor` indicating the window length to generate.
45 A `Tensor` of shape `[window_length]` of type `dtype`.
52 return _raised_cosine_window(name, 'hann_window', window_length, periodic,
56 def hamming_window(window_length, periodic=True, dtype=dtypes.float32,
61 window_length: A scalar `Tensor` indicating the window length to generate.
70 A `Tensor` of shape `[window_length]` of type `dtype`.
77 return _raised_cosine_window(name, 'hamming_window', window_length, periodic,
81 def _raised_cosine_window(name, default_name, window_length, periodic,
88 window_length: A scalar `Tensor` or integer indicating the window length
    [all...]
  /external/tensorflow/tensorflow/contrib/signal/python/kernel_tests/
spectral_ops_test.py 49 def _np_frame(data, window_length, hop_length):
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):
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):
64 # Pad or truncate frames's inner dimension to window_length.
65 frames = frames[..., :window_length]
67 [[0, max(0, window_length - frames.shape[-1])]], "constant"
    [all...]
window_ops_test.py 68 for window_length in self._window_lengths:
72 expected = np_window_fn(window_length,
74 actual = tf_window_fn(window_length, periodic=periodic,
  /external/tensorflow/tensorflow/core/kernels/
spectrogram.cc 29 void GetPeriodicHann(int window_length, std::vector<double>* window) {
32 window->resize(window_length);
33 for (int i = 0; i < window_length; ++i) {
34 (*window)[i] = 0.5 - 0.5 * cos((2 * pi * i) / window_length);
39 bool Spectrogram::Initialize(int window_length, int step_length) {
41 GetPeriodicHann(window_length, &window);
spectrogram.h 52 // are possible. window_length must be greater than 1 and step
54 bool Initialize(int window_length, int step_length);

Completed in 83 milliseconds