aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/contrib/signal
diff options
context:
space:
mode:
authorGravatar RJ Ryan <rjryan@google.com>2017-07-19 13:00:45 -0700
committerGravatar TensorFlower Gardener <gardener@tensorflow.org>2017-07-19 13:04:29 -0700
commit03a790d5bff835365a54a534fc1658dc287c0f63 (patch)
tree43ef98f29371189838de1f7828d6eebcc625ce92 /tensorflow/contrib/signal
parent00331578f746797989803a22a112e2046649dfbb (diff)
Disable padding by default in tf.contrib.signal.stft to match tf.contrib.signal.frame.
PiperOrigin-RevId: 162523648
Diffstat (limited to 'tensorflow/contrib/signal')
-rw-r--r--tensorflow/contrib/signal/python/ops/spectral_ops.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tensorflow/contrib/signal/python/ops/spectral_ops.py b/tensorflow/contrib/signal/python/ops/spectral_ops.py
index 1457f13604..0d1ef0d3d1 100644
--- a/tensorflow/contrib/signal/python/ops/spectral_ops.py
+++ b/tensorflow/contrib/signal/python/ops/spectral_ops.py
@@ -34,7 +34,7 @@ from tensorflow.python.ops import spectral_ops
def stft(signal, frame_length, frame_step, fft_length=None,
window_fn=functools.partial(window_ops.hann_window, periodic=True),
- pad_end=True, name=None):
+ pad_end=False, name=None):
"""Computes the Short-time Fourier Transform of a batch of real signals.
https://en.wikipedia.org/wiki/Short-time_Fourier_transform
@@ -51,7 +51,7 @@ def stft(signal, frame_length, frame_step, fft_length=None,
argument and returns a `[window_length]` `Tensor` of samples in the
provided datatype. If set to `None`, no windowing is used.
pad_end: Whether to pad the end of signal with zeros when the provided
- window length and hop produces a window that lies partially past the end
+ frame length and step produces a frame that lies partially past the end
of `signal`.
name: An optional name for the operation.