Class ZipDataset

java.lang.Object
org.tensorflow.op.RawOp
org.tensorflow.op.data.ZipDataset
All Implemented Interfaces:
Shaped, Op, Operand<TType>

@Operator(group="data") public final class ZipDataset extends RawOp implements Operand<TType>
Creates a dataset that zips together input_datasets. The elements of the resulting dataset are created by zipping corresponding elements from each of the input datasets.

The size of the resulting dataset will match the size of the smallest input dataset, and no error will be raised if input datasets have different sizes.

  • Field Details

  • Constructor Details

    • ZipDataset

      public ZipDataset(Operation operation)
  • Method Details

    • create

      @Endpoint(describeByClass=true) public static ZipDataset create(Scope scope, Iterable<Operand<? extends TType>> inputDatasets, List<Class<? extends TType>> outputTypes, List<Shape> outputShapes, ZipDataset.Options... options)
      Factory method to create a class wrapping a new ZipDataset operation.
      Parameters:
      scope - current scope
      inputDatasets - List of N variant Tensors representing datasets to be zipped together.
      outputTypes - The value of the outputTypes attribute
      outputShapes - The value of the outputShapes attribute
      options - carries optional attribute values
      Returns:
      a new instance of ZipDataset
    • metadata

      public static ZipDataset.Options metadata(String metadata)
      Sets the metadata option.
      Parameters:
      metadata - the metadata option
      Returns:
      this Options instance.
    • handle

      public Output<? extends TType> handle()
      Gets handle.
      Returns:
      handle.
    • asOutput

      public Output<TType> asOutput()
      Description copied from interface: Operand
      Returns the symbolic handle of the tensor.

      Inputs to TensorFlow operations are outputs of another TensorFlow operation. This method is used to obtain a symbolic handle that represents the computation of the input.

      Specified by:
      asOutput in interface Operand<TType>
      See Also: