All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.tensorflow.op.SignalOps Maven / Gradle / Ivy

The newest version!
package org.tensorflow.op;

import org.tensorflow.Operand;
import org.tensorflow.op.signal.BatchFft;
import org.tensorflow.op.signal.BatchFft2d;
import org.tensorflow.op.signal.BatchFft3d;
import org.tensorflow.op.signal.BatchIfft;
import org.tensorflow.op.signal.BatchIfft2d;
import org.tensorflow.op.signal.BatchIfft3d;
import org.tensorflow.op.signal.Fft;
import org.tensorflow.op.signal.Fft2d;
import org.tensorflow.op.signal.Fft3d;
import org.tensorflow.op.signal.Ifft;
import org.tensorflow.op.signal.Ifft2d;
import org.tensorflow.op.signal.Ifft3d;
import org.tensorflow.op.signal.Irfft;
import org.tensorflow.op.signal.Irfft2d;
import org.tensorflow.op.signal.Irfft3d;
import org.tensorflow.op.signal.Rfft;
import org.tensorflow.op.signal.Rfft2d;
import org.tensorflow.op.signal.Rfft3d;

/**
 * An API for building {@code signal} operations as {@link Op Op}s
 *
 * @see {@link Ops}
 */
public final class SignalOps {
  private final Scope scope;

  SignalOps(Scope scope) {
    this.scope = scope;
  }

  /**
   * Builds an {@link BatchIfft} operation
   *
   * @param input 
   * @return a new instance of BatchIfft
   * @see org.tensorflow.op.signal.BatchIfft
   */
  public BatchIfft batchIfft(Operand input) {
    return BatchIfft.create(scope, input);
  }

  /**
   * Builds an {@link Ifft2d} operation
   *
   * @param input A complex tensor.
   * @return a new instance of Ifft2d
   * @see org.tensorflow.op.signal.Ifft2d
   */
  public  Ifft2d ifft2d(Operand input) {
    return Ifft2d.create(scope, input);
  }

  /**
   * Builds an {@link Ifft3d} operation
   *
   * @param input A complex64 tensor.
   * @return a new instance of Ifft3d
   * @see org.tensorflow.op.signal.Ifft3d
   */
  public  Ifft3d ifft3d(Operand input) {
    return Ifft3d.create(scope, input);
  }

  /**
   * Builds an {@link Fft2d} operation
   *
   * @param input A complex tensor.
   * @return a new instance of Fft2d
   * @see org.tensorflow.op.signal.Fft2d
   */
  public  Fft2d fft2d(Operand input) {
    return Fft2d.create(scope, input);
  }

  /**
   * Builds an {@link Irfft2d} operation
   *
   * @param input A complex64 tensor.
   * @param fftLength An int32 tensor of shape [2]. The FFT length for each dimension.
   * @return a new instance of Irfft2d
   * @see org.tensorflow.op.signal.Irfft2d
   */
  public Irfft2d irfft2d(Operand input, Operand fftLength) {
    return Irfft2d.create(scope, input, fftLength);
  }

  /**
   * Builds an {@link Rfft2d} operation
   *
   * @param input A float32 tensor.
   * @param fftLength An int32 tensor of shape [2]. The FFT length for each dimension.
   * @return a new instance of Rfft2d
   * @see org.tensorflow.op.signal.Rfft2d
   */
  public Rfft2d rfft2d(Operand input, Operand fftLength) {
    return Rfft2d.create(scope, input, fftLength);
  }

  /**
   * Builds an {@link Ifft} operation
   *
   * @param input A complex tensor.
   * @return a new instance of Ifft
   * @see org.tensorflow.op.signal.Ifft
   */
  public  Ifft ifft(Operand input) {
    return Ifft.create(scope, input);
  }

  /**
   * Builds an {@link Rfft} operation
   *
   * @param input A float32 tensor.
   * @param fftLength An int32 tensor of shape [1]. The FFT length.
   * @return a new instance of Rfft
   * @see org.tensorflow.op.signal.Rfft
   */
  public Rfft rfft(Operand input, Operand fftLength) {
    return Rfft.create(scope, input, fftLength);
  }

  /**
   * Builds an {@link BatchIfft3d} operation
   *
   * @param input 
   * @return a new instance of BatchIfft3d
   * @see org.tensorflow.op.signal.BatchIfft3d
   */
  public BatchIfft3d batchIfft3d(Operand input) {
    return BatchIfft3d.create(scope, input);
  }

  /**
   * Builds an {@link Irfft3d} operation
   *
   * @param input A complex64 tensor.
   * @param fftLength An int32 tensor of shape [3]. The FFT length for each dimension.
   * @return a new instance of Irfft3d
   * @see org.tensorflow.op.signal.Irfft3d
   */
  public Irfft3d irfft3d(Operand input, Operand fftLength) {
    return Irfft3d.create(scope, input, fftLength);
  }

  /**
   * Builds an {@link Rfft3d} operation
   *
   * @param input A float32 tensor.
   * @param fftLength An int32 tensor of shape [3]. The FFT length for each dimension.
   * @return a new instance of Rfft3d
   * @see org.tensorflow.op.signal.Rfft3d
   */
  public Rfft3d rfft3d(Operand input, Operand fftLength) {
    return Rfft3d.create(scope, input, fftLength);
  }

  /**
   * Builds an {@link BatchFft3d} operation
   *
   * @param input 
   * @return a new instance of BatchFft3d
   * @see org.tensorflow.op.signal.BatchFft3d
   */
  public BatchFft3d batchFft3d(Operand input) {
    return BatchFft3d.create(scope, input);
  }

  /**
   * Builds an {@link Fft} operation
   *
   * @param input A complex tensor.
   * @return a new instance of Fft
   * @see org.tensorflow.op.signal.Fft
   */
  public  Fft fft(Operand input) {
    return Fft.create(scope, input);
  }

  /**
   * Builds an {@link BatchFft2d} operation
   *
   * @param input 
   * @return a new instance of BatchFft2d
   * @see org.tensorflow.op.signal.BatchFft2d
   */
  public BatchFft2d batchFft2d(Operand input) {
    return BatchFft2d.create(scope, input);
  }

  /**
   * Builds an {@link Fft3d} operation
   *
   * @param input A complex64 tensor.
   * @return a new instance of Fft3d
   * @see org.tensorflow.op.signal.Fft3d
   */
  public  Fft3d fft3d(Operand input) {
    return Fft3d.create(scope, input);
  }

  /**
   * Builds an {@link Irfft} operation
   *
   * @param input A complex64 tensor.
   * @param fftLength An int32 tensor of shape [1]. The FFT length.
   * @return a new instance of Irfft
   * @see org.tensorflow.op.signal.Irfft
   */
  public Irfft irfft(Operand input, Operand fftLength) {
    return Irfft.create(scope, input, fftLength);
  }

  /**
   * Builds an {@link BatchIfft2d} operation
   *
   * @param input 
   * @return a new instance of BatchIfft2d
   * @see org.tensorflow.op.signal.BatchIfft2d
   */
  public BatchIfft2d batchIfft2d(Operand input) {
    return BatchIfft2d.create(scope, input);
  }

  /**
   * Builds an {@link BatchFft} operation
   *
   * @param input 
   * @return a new instance of BatchFft
   * @see org.tensorflow.op.signal.BatchFft
   */
  public BatchFft batchFft(Operand input) {
    return BatchFft.create(scope, input);
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy