Home
last modified time | relevance | path

Searched refs:frame_step (Results 1 – 9 of 9) sorted by relevance

/external/tensorflow/tensorflow/python/kernel_tests/signal/
Dshape_ops_test.py95 frame_step = 1
98 result = shape_ops.frame(signal, frame_length, frame_step,
102 result = shape_ops.frame(signal, frame_length, frame_step,
110 frame_step = 1
113 result = shape_ops.frame(signal, frame_length, frame_step,
117 result = shape_ops.frame(signal, frame_length, frame_step,
125 frame_step = 1
126 result = shape_ops.frame(signal, frame_length, frame_step,
130 result = shape_ops.frame(signal, frame_length, frame_step,
139 frame_step = 3
[all …]
Dspectral_ops_test.py82 def _compare(self, signal, frame_length, frame_step, fft_length): argument
86 signal, frame_length, frame_step, fft_length, pad_end=False)
89 signal_ph, frame_length, frame_step, fft_length, pad_end=False)
92 actual_stft, frame_length, frame_step, fft_length)
101 actual_stft_ph, frame_length, frame_step, fft_length),
110 signal, fft_length, frame_step, frame_length)
114 expected_stft, fft_length, frame_step, frame_length)
125 stft = spectral_ops.stft(signal, frame_length=7, frame_step=8,
130 stft = spectral_ops.stft(signal, frame_length=8, frame_step=8,
135 stft = spectral_ops.stft(signal, frame_length=8, frame_step=8,
[all …]
Dreconstruction_ops_test.py76 frame_step = array_ops.placeholder(dtype=dtypes.int32, shape=[])
77 reconstruction = reconstruction_ops.overlap_and_add(signal, frame_step)
83 feed_dict={signal: np.ones([4, 3, 5]), frame_step: 2})
96 frame_step = array_ops.placeholder(dtype=dtypes.int32, shape=[])
97 reconstruction = reconstruction_ops.overlap_and_add(signal, frame_step)
103 feed_dict={signal: np.ones([4, 3, 5]), frame_step: 2})
116 frame_step = 5
117 reconstruction = reconstruction_ops.overlap_and_add(signal, frame_step)
/external/tensorflow/tensorflow/python/ops/signal/
Dshape_ops.py29 def _infer_frame_shape(signal, frame_length, frame_step, pad_end, axis): argument
32 frame_step = tensor_util.constant_value(frame_step)
45 if frame_step is not None and pad_end:
47 num_frames = max(0, -(-frame_axis // frame_step))
48 elif frame_step is not None and frame_length is not None:
51 0, (frame_axis - frame_length + frame_step) // frame_step)
56 def frame(signal, frame_length, frame_step, pad_end=False, pad_value=0, axis=-1, argument
97 with ops.name_scope(name, "frame", [signal, frame_length, frame_step,
101 frame_step = ops.convert_to_tensor(frame_step, name="frame_step")
106 frame_step.shape.assert_has_rank(0)
[all …]
Dreconstruction_ops.py30 def overlap_and_add(signal, frame_step, name=None): argument
54 with ops.name_scope(name, "overlap_and_add", [signal, frame_step]):
57 frame_step = ops.convert_to_tensor(frame_step, name="frame_step")
58 frame_step.shape.assert_has_rank(0)
59 if not frame_step.dtype.is_integer:
61 frame_step.dtype)
77 output_length = frame_length + frame_step * (frames - 1)
81 frame_step_static = tensor_util.constant_value(frame_step)
96 segments = -(-frame_length // frame_step) # Divide and round up.
106 paddings = [[0, segments], [0, segments * frame_step - frame_length]]
[all …]
Dspectral_ops.py37 def stft(signals, frame_length, frame_step, fft_length=None, argument
69 frame_step]):
74 frame_step = ops.convert_to_tensor(frame_step, name='frame_step')
75 frame_step.shape.assert_has_rank(0)
83 signals, frame_length, frame_step, pad_end=pad_end)
96 def inverse_stft_window_fn(frame_step, argument
119 frame_step = ops.convert_to_tensor(frame_step, name='frame_step')
120 frame_step.shape.assert_has_rank(0)
145 overlaps = -(-frame_length // frame_step) # Ceiling division.
146 denom = array_ops.pad(denom, [(0, overlaps * frame_step - frame_length)])
[all …]
Dmel_ops.py182 num_mel_bins + 2), frame_length=3, frame_step=1)
/external/tensorflow/tensorflow/tools/api/golden/v2/
Dtensorflow.signal.pbtxt21 …argspec: "args=[\'signal\', \'frame_length\', \'frame_step\', \'pad_end\', \'pad_value\', \'axis\'…
49 …argspec: "args=[\'stfts\', \'frame_length\', \'frame_step\', \'fft_length\', \'window_fn\', \'name…
53 …argspec: "args=[\'frame_step\', \'forward_window_fn\', \'name\'], varargs=None, keywords=None, def…
77 …argspec: "args=[\'signal\', \'frame_step\', \'name\'], varargs=None, keywords=None, defaults=[\'No…
93 …argspec: "args=[\'signals\', \'frame_length\', \'frame_step\', \'fft_length\', \'window_fn\', \'pa…
/external/tensorflow/tensorflow/tools/api/golden/v1/
Dtensorflow.signal.pbtxt21 …argspec: "args=[\'signal\', \'frame_length\', \'frame_step\', \'pad_end\', \'pad_value\', \'axis\'…
49 …argspec: "args=[\'stfts\', \'frame_length\', \'frame_step\', \'fft_length\', \'window_fn\', \'name…
53 …argspec: "args=[\'frame_step\', \'forward_window_fn\', \'name\'], varargs=None, keywords=None, def…
77 …argspec: "args=[\'signal\', \'frame_step\', \'name\'], varargs=None, keywords=None, defaults=[\'No…
93 …argspec: "args=[\'signals\', \'frame_length\', \'frame_step\', \'fft_length\', \'window_fn\', \'pa…