|
97 | 97 | import org.tensorflow.op.core.EnsureShape; |
98 | 98 | import org.tensorflow.op.core.ExpandDims; |
99 | 99 | import org.tensorflow.op.core.ExtractVolumePatches; |
| 100 | +import org.tensorflow.op.core.FFTND; |
100 | 101 | import org.tensorflow.op.core.Fill; |
101 | 102 | import org.tensorflow.op.core.Fingerprint; |
102 | 103 | import org.tensorflow.op.core.For; |
|
110 | 111 | import org.tensorflow.op.core.HashTable; |
111 | 112 | import org.tensorflow.op.core.Helpers; |
112 | 113 | import org.tensorflow.op.core.HistogramFixedWidth; |
| 114 | +import org.tensorflow.op.core.IFFTND; |
| 115 | +import org.tensorflow.op.core.IRFFTND; |
113 | 116 | import org.tensorflow.op.core.Identity; |
114 | 117 | import org.tensorflow.op.core.IdentityN; |
115 | 118 | import org.tensorflow.op.core.If; |
|
166 | 169 | import org.tensorflow.op.core.Print; |
167 | 170 | import org.tensorflow.op.core.Prod; |
168 | 171 | import org.tensorflow.op.core.QuantizedReshape; |
| 172 | +import org.tensorflow.op.core.RFFTND; |
169 | 173 | import org.tensorflow.op.core.RaggedFillEmptyRows; |
170 | 174 | import org.tensorflow.op.core.RaggedFillEmptyRowsGrad; |
171 | 175 | import org.tensorflow.op.core.RandomIndexShuffle; |
@@ -2683,6 +2687,29 @@ public <T extends TNumber> ExtractVolumePatches<T> extractVolumePatches(Operand< |
2683 | 2687 | return ExtractVolumePatches.create(scope, input, ksizes, strides, padding); |
2684 | 2688 | } |
2685 | 2689 |
|
| 2690 | + /** |
| 2691 | + * ND fast Fourier transform. |
| 2692 | + * Computes the n-dimensional discrete Fourier transform over |
| 2693 | + * designated dimensions of {@code input}. The designated dimensions of |
| 2694 | + * {@code input} are assumed to be the result of {@code FFTND}. |
| 2695 | + * <p>If fft_length[i]<shape(input)[i], the input is cropped. If |
| 2696 | + * fft_length[i]>shape(input)[i], the input is padded with zeros. If fft_length |
| 2697 | + * is not given, the default shape(input) is used. |
| 2698 | + * <p>Axes mean the dimensions to perform the transform on. Default is to perform on |
| 2699 | + * all axes. |
| 2700 | + * |
| 2701 | + * @param <T> data type for {@code output} output |
| 2702 | + * @param input A complex tensor. |
| 2703 | + * @param fftLength An int32 tensor. The FFT length for each dimension. |
| 2704 | + * @param axes An int32 tensor with a same shape as fft_length. Axes to perform the transform. |
| 2705 | + * @param <T> data type for {@code FFTND} output and operands |
| 2706 | + * @return a new instance of FFTND |
| 2707 | + */ |
| 2708 | + public <T extends TType> FFTND<T> fFTND(Operand<T> input, Operand<TInt32> fftLength, |
| 2709 | + Operand<TInt32> axes) { |
| 2710 | + return FFTND.create(scope, input, fftLength, axes); |
| 2711 | + } |
| 2712 | + |
2686 | 2713 | /** |
2687 | 2714 | * Creates a tensor filled with a scalar value. |
2688 | 2715 | * This operation creates a tensor of shape {@code dims} and fills it with {@code value}. |
@@ -3086,6 +3113,77 @@ public <U extends TNumber, T extends TNumber> HistogramFixedWidth<U> histogramFi |
3086 | 3113 | return HistogramFixedWidth.create(scope, values, valueRange, nbins, dtype); |
3087 | 3114 | } |
3088 | 3115 |
|
| 3116 | + /** |
| 3117 | + * ND inverse fast Fourier transform. |
| 3118 | + * Computes the n-dimensional inverse discrete Fourier transform over designated |
| 3119 | + * dimensions of {@code input}. The designated dimensions of {@code input} are assumed to be |
| 3120 | + * the result of {@code IFFTND}. |
| 3121 | + * <p>If fft_length[i]<shape(input)[i], the input is cropped. If |
| 3122 | + * fft_length[i]>shape(input)[i], the input is padded with zeros. If fft_length |
| 3123 | + * is not given, the default shape(input) is used. |
| 3124 | + * <p>Axes mean the dimensions to perform the transform on. Default is to perform on |
| 3125 | + * all axes. |
| 3126 | + * |
| 3127 | + * @param <T> data type for {@code output} output |
| 3128 | + * @param input A complex tensor. |
| 3129 | + * @param fftLength An int32 tensor. The FFT length for each dimension. |
| 3130 | + * @param axes An int32 tensor with a same shape as fft_length. Axes to perform the transform. |
| 3131 | + * @param <T> data type for {@code IFFTND} output and operands |
| 3132 | + * @return a new instance of IFFTND |
| 3133 | + */ |
| 3134 | + public <T extends TType> IFFTND<T> iFFTND(Operand<T> input, Operand<TInt32> fftLength, |
| 3135 | + Operand<TInt32> axes) { |
| 3136 | + return IFFTND.create(scope, input, fftLength, axes); |
| 3137 | + } |
| 3138 | + |
| 3139 | + /** |
| 3140 | + * ND inverse real fast Fourier transform. |
| 3141 | + * Computes the n-dimensional inverse real discrete Fourier transform over |
| 3142 | + * designated dimensions of {@code input}. The designated dimensions of {@code input} are |
| 3143 | + * assumed to be the result of {@code IRFFTND}. The inner-most dimension contains the |
| 3144 | + * {@code fft_length / 2 + 1} unique components of the DFT of a real-valued signal. |
| 3145 | + * <p>If fft_length[i]<shape(input)[i], the input is cropped. If |
| 3146 | + * fft_length[i]>shape(input)[i], the input is padded with zeros. If fft_length |
| 3147 | + * is not given, the default shape(input) is used. |
| 3148 | + * <p>Axes mean the dimensions to perform the transform on. Default is to perform on |
| 3149 | + * all axes. |
| 3150 | + * |
| 3151 | + * @param <U> data type for {@code output} output |
| 3152 | + * @param input A complex tensor. |
| 3153 | + * @param fftLength An int32 tensor. The FFT length for each dimension. |
| 3154 | + * @param axes An int32 tensor with a same shape as fft_length. Axes to perform the transform. |
| 3155 | + * @return a new instance of IRFFTND, with default output types |
| 3156 | + */ |
| 3157 | + public IRFFTND<TFloat32> iRFFTND(Operand<? extends TType> input, Operand<TInt32> fftLength, |
| 3158 | + Operand<TInt32> axes) { |
| 3159 | + return IRFFTND.create(scope, input, fftLength, axes); |
| 3160 | + } |
| 3161 | + |
| 3162 | + /** |
| 3163 | + * ND inverse real fast Fourier transform. |
| 3164 | + * Computes the n-dimensional inverse real discrete Fourier transform over |
| 3165 | + * designated dimensions of {@code input}. The designated dimensions of {@code input} are |
| 3166 | + * assumed to be the result of {@code IRFFTND}. The inner-most dimension contains the |
| 3167 | + * {@code fft_length / 2 + 1} unique components of the DFT of a real-valued signal. |
| 3168 | + * <p>If fft_length[i]<shape(input)[i], the input is cropped. If |
| 3169 | + * fft_length[i]>shape(input)[i], the input is padded with zeros. If fft_length |
| 3170 | + * is not given, the default shape(input) is used. |
| 3171 | + * <p>Axes mean the dimensions to perform the transform on. Default is to perform on |
| 3172 | + * all axes. |
| 3173 | + * |
| 3174 | + * @param <U> data type for {@code output} output |
| 3175 | + * @param input A complex tensor. |
| 3176 | + * @param fftLength An int32 tensor. The FFT length for each dimension. |
| 3177 | + * @param axes An int32 tensor with a same shape as fft_length. Axes to perform the transform. |
| 3178 | + * @param Treal The value of the Treal attribute |
| 3179 | + * @param <U> data type for {@code IRFFTND} output and operands |
| 3180 | + * @return a new instance of IRFFTND |
| 3181 | + */ |
| 3182 | + public <U extends TNumber> IRFFTND<U> iRFFTND(Operand<? extends TType> input, |
| 3183 | + Operand<TInt32> fftLength, Operand<TInt32> axes, Class<U> Treal) { |
| 3184 | + return IRFFTND.create(scope, input, fftLength, axes, Treal); |
| 3185 | + } |
| 3186 | + |
3089 | 3187 | /** |
3090 | 3188 | * Return a tensor with the same shape and contents as the input tensor or value. |
3091 | 3189 | * |
@@ -4219,6 +4317,31 @@ public <T extends TType> QuantizedReshape<T> quantizedReshape(Operand<T> tensor, |
4219 | 4317 | return QuantizedReshape.create(scope, tensor, shape, inputMin, inputMax); |
4220 | 4318 | } |
4221 | 4319 |
|
| 4320 | + /** |
| 4321 | + * ND fast real Fourier transform. |
| 4322 | + * Computes the n-dimensional real discrete Fourier transform over designated |
| 4323 | + * dimensions of {@code input}. The designated dimensions of {@code input} are assumed to be |
| 4324 | + * the result of {@code RFFTND}. The length of the last axis transformed will be |
| 4325 | + * fft_length[-1]//2+1. |
| 4326 | + * <p>If fft_length[i]<shape(input)[i], the input is cropped. If |
| 4327 | + * fft_length[i]>shape(input)[i], the input is padded with zeros. If fft_length |
| 4328 | + * is not given, the default shape(input) is used. |
| 4329 | + * <p>Axes mean the dimensions to perform the transform on. Default is to perform on |
| 4330 | + * all axes. |
| 4331 | + * |
| 4332 | + * @param <U> data type for {@code output} output |
| 4333 | + * @param input A complex tensor. |
| 4334 | + * @param fftLength An int32 tensor. The FFT length for each dimension. |
| 4335 | + * @param axes An int32 tensor with a same shape as fft_length. Axes to perform the transform. |
| 4336 | + * @param Tcomplex The value of the Tcomplex attribute |
| 4337 | + * @param <U> data type for {@code RFFTND} output and operands |
| 4338 | + * @return a new instance of RFFTND |
| 4339 | + */ |
| 4340 | + public <U extends TType> RFFTND<U> rFFTND(Operand<? extends TNumber> input, |
| 4341 | + Operand<TInt32> fftLength, Operand<TInt32> axes, Class<U> Tcomplex) { |
| 4342 | + return RFFTND.create(scope, input, fftLength, axes, Tcomplex); |
| 4343 | + } |
| 4344 | + |
4222 | 4345 | /** |
4223 | 4346 | * The RaggedFillEmptyRows operation |
4224 | 4347 | * |
|
0 commit comments