Home | History | Annotate | Download | only in ops

Lines Matching defs:dct

15 """Spectral operators (e.g. DCT, FFT, RFFT).
17 @@dct
183 raise NotImplementedError("The DCT length argument is not implemented.")
187 raise ValueError("Only the Type II DCT is supported.")
194 @tf_export("spectral.dct")
195 def dct(input, type=2, n=None, axis=-1, norm=None, name=None): # pylint: disable=redefined-builtin
196 """Computes the 1D [Discrete Cosine Transform (DCT)][dct] of `input`.
202 Equivalent to scipy.fftpack.dct for the Type-II DCT.
203 https://docs.scipy.org/doc/scipy-0.14.0/reference/generated/scipy.fftpack.dct.html
208 take the DCT of.
209 type: The DCT type to perform. Must be 2.
211 axis: For future expansion. The axis to compute the DCT along. Must be `-1`.
217 A `[..., samples]` `float32` `Tensor` containing the DCT of `input`.
223 [dct]: https://en.wikipedia.org/wiki/Discrete_cosine_transform
226 with _ops.name_scope(name, "dct", [input]):
227 # We use the RFFT to compute the DCT and TensorFlow only supports float32
238 # approaches to computing a DCT via the RFFT.