Class

org.platanios.tensorflow.api.ops.Basic

BasicOps

Related Doc: package Basic

Permalink

case class BasicOps(output: Output) extends Product with Serializable

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. BasicOps
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. AnyRef
  7. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new BasicOps(output: Output)

    Permalink

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def batchToSpace(blockSize: Int, crops: Output): Output

    Permalink

    $OpDocBasicBatchToSpace

    $OpDocBasicBatchToSpace

    blockSize

    Block size which must be greater than 1.

    crops

    2-dimensional INT32 or INT64 tensor containing non-negative integers with shape [2, 2].

    returns

    Result as a new tensor.

  6. def batchToSpaceND(blockShape: Output, crops: Output): Output

    Permalink

    $OpDocBasicBatchToSpaceND

    $OpDocBasicBatchToSpaceND

    blockShape

    One-dimensional INT32 or INT64 tensor with shape [M] whose elements must all be >= 1.

    crops

    Two-dimensional INT32 or INT64 tensor with shape [M, 2] whose elements must all be non-negative. crops(i) = [cropStart, cropEnd] specifies the amount to crop from input dimension i + 1, which corresponds to spatial dimension i. It is required that cropStart(i) + cropEnd(i) <= blockShape(i) * inputShape(i + 1).

    returns

    Result as a new tensor.

  7. def booleanMask(mask: Output): Output

    Permalink

    $OpDocBasicBooleanMask

    $OpDocBasicBooleanMask

    mask

    K-dimensional boolean tensor, where K <= N and K must be known statically.

    returns

    Result as a new tensor.

  8. def checkNumerics(message: String = ""): Output

    Permalink

    $OpDocBasicCheckNumerics

    $OpDocBasicCheckNumerics

    message

    Prefix to print for the error message.

    returns

    Result as a new tensor which has the same value as the input tensor.

  9. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  10. def depthToSpace(blockSize: Int, dataFormat: NN.CNNDataFormat = CNNDataFormat.default): Output

    Permalink

    $OpDocBasicDepthToSpace

    $OpDocBasicDepthToSpace

    blockSize

    Block size which must be greater than 1.

    dataFormat

    Format of the input and output data.

    returns

    Result as a new tensor.

  11. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  12. def expandDims(axis: Output): Output

    Permalink

    $OpDocBasicExpandDims

    $OpDocBasicExpandDims

    axis

    Dimension index at which to expand the shape of this tensor.

    returns

    Result as a new tensor.

  13. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  14. def gather(indices: Output, axis: Output = 0): Output

    Permalink

    $OpDocBasicGather

    $OpDocBasicGather

    indices

    Output containing indices to gather.

    axis

    Output containing the axis along which to gather.

    returns

    Result as a new tensor.

  15. def gatherND(indices: Output): Output

    Permalink

    $OpDocBasicGatherND

    $OpDocBasicGatherND

    indices

    Output containing indices to gather.

    returns

    Result as a new tensor which contains the values from input gathered from indices given by indices, with shape indices.shape(::-1) + input.shape(indices.shape(-1)::).

  16. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  17. def invertPermutation(): Output

    Permalink

    $OpDocBasicInvertPermutation

    $OpDocBasicInvertPermutation

    returns

    Result as a new tensor.

  18. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  19. def listDiff(other: Output, indicesDataType: types.DataType = INT32): (Output, Output)

    Permalink

    $OpDocBasicListDiff

    $OpDocBasicListDiff

    other

    One-dimensional tensor containing the values to remove.

    indicesDataType

    Data type to use for the output indices of this op. Must be INT32 or INT64.

    returns

    Tuple containing output and indices, from the method description.

  20. def matrixTranspose(conjugate: Boolean = false): Output

    Permalink

    $OpDocBasicMatrixTranspose

    $OpDocBasicMatrixTranspose

    conjugate

    If true, then the complex conjugate of the transpose result is returned.

    returns

    Result as a new tensor.

  21. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  22. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  23. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  24. def oneHot(depth: Output, onValue: Output = null, offValue: Output = null, axis: Int = 1, dataType: types.DataType = null): Output

    Permalink

    $OpDocBasicOneHot

    $OpDocBasicOneHot

    depth

    Scalar tensor defining the depth of the one-hot dimension.

    onValue

    Scalar tensor defining the value to fill in the output ith value, when indices[j] = i. Defaults to the value 1 with type dataType.

    offValue

    Scalar tensor defining the value to fill in the output ith value, when indices[j] != i. Defaults to the value 0 with type dataType.

    axis

    Axis to fill. Defaults to -1, representing the last axis.

    dataType

    Data type of the output tensor. If not provided, the function will attempt to assume the data type of onValue or offValue, if one or both are passed in. If none of onValue, offValue, or dataType are provided, dataType will default to the FLOAT32 data type.

    returns

    Result as a new tensor.

  25. val output: Output

    Permalink
  26. def pad(paddings: Output, mode: Basic.PaddingMode = ConstantPadding(0)): Output

    Permalink

    $OpDocBasicPad

    $OpDocBasicPad

    paddings

    INT32 or INT64 tensor containing the paddings.

    mode

    Padding mode to use.

    returns

    Result as a new tensor.

  27. def preventGradient(message: String = ""): Output

    Permalink

    $OpDocBasicPreventGradient

    $OpDocBasicPreventGradient

    message

    Message to print along with the error.

    returns

    Result as a new tensor which has the same value as this tensor.

  28. def reshape(shape: Output): Output

    Permalink

    $OpDocBasicReshape

    $OpDocBasicReshape

    shape

    Shape of the output tensor.

    returns

    Result as a new tensor.

  29. def reverse(axes: Output): Output

    Permalink

    $OpDocBasicReverse

    $OpDocBasicReverse

    axes

    Dimensions of the input tensor to reverse. Has to be INT32 or INT64.

    returns

    Result as a new tensor which has the same shape as input.

  30. def reverseSequence(sequenceLengths: Output, sequenceAxis: Int, batchAxis: Int = 0): Output

    Permalink

    $OpDocBasicReverseSequence

    $OpDocBasicReverseSequence

    sequenceLengths

    One-dimensional tensor with length input.shape(batchAxis) and max(sequenceLengths) <= input.shape(sequenceAxis).

    sequenceAxis

    Output dimension which is partially reversed.

    batchAxis

    Output dimension along which the reversal is performed.

    returns

    Result as a new tensor which has the same shape as input.

  31. def scatterND(updates: Output, shape: Output): Output

    Permalink

    $OpDocBasicScatterND

    $OpDocBasicScatterND

    updates

    Updates to scatter into the output tensor.

    shape

    One-dimensional INT32 or INT64 tensor specifying the shape of the output tensor.

    returns

    Result as a new tensor.

  32. def sequenceMask(maxLength: Output = null, dataType: types.DataType = BOOLEAN): Output

    Permalink

    $OpDocBasicSequenceMask

    $OpDocBasicSequenceMask

    maxLength

    Scalar integer tensor representing the maximum length of each row. Defaults to the maximum value in this tensor.

    dataType

    Data type for the output tensor.

    returns

    Result as a new tensor.

  33. def slice(indexers: core.Indexer*): Output

    Permalink
  34. def spaceToBatch(blockSize: Int, paddings: Output): Output

    Permalink

    $OpDocBasicSpaceToBatch

    $OpDocBasicSpaceToBatch

    blockSize

    Block size which must be greater than 1.

    paddings

    2-dimensional INT32 or INT64 tensor containing non-negative integers with shape [2, 2].

    returns

    Result as a new tensor.

  35. def spaceToBatchND(blockShape: Output, paddings: Output): Output

    Permalink

    $OpDocBasicSpaceToBatchND

    $OpDocBasicSpaceToBatchND

    blockShape

    One-dimensional INT32 or INT64 tensor with shape [M] whose elements must all be >= 1.

    paddings

    Two-dimensional INT32 or INT64 tensor with shape [M, 2] whose elements must all be non-negative. paddings(i) = [padStart, padEnd] specifies the padding for input dimension i + 1, which corresponds to spatial dimension i. It is required that blockShape(i) divides inputShape(i + 1) + padStart + padEnd.

    returns

    Result as a new tensor.

  36. def spaceToDepth(blockSize: Int, dataFormat: NN.CNNDataFormat = CNNDataFormat.default): Output

    Permalink

    $OpDocBasicSpaceToDepth

    $OpDocBasicSpaceToDepth

    blockSize

    Block size which must be greater than 1.

    dataFormat

    Format of the input and output data.

    returns

    Result as a new tensor.

  37. def split(splitSizes: Output, axis: Output = 0): Seq[Output]

    Permalink

    $OpDocBasicSplit

    $OpDocBasicSplit

    splitSizes

    Sizes for the splits to obtain.

    axis

    Dimension along which to split the input tensor.

    returns

    Result as a new tensor.

  38. def splitEvenly(numSplits: Int, axis: Output = 0): Seq[Output]

    Permalink

    $OpDocBasicSplitEvenly

    $OpDocBasicSplitEvenly

    numSplits

    Number of splits to obtain along the axis dimension.

    axis

    Dimension along which to split the input tensor.

    returns

    Result as a sequence of new tensors.

  39. def squeeze(axes: Seq[Int] = null): Output

    Permalink

    $OpDocBasicSqueeze

    $OpDocBasicSqueeze

    axes

    Dimensions of size 1 to squeeze. If this argument is not provided, then all dimensions of size 1 will be squeezed.

    returns

    Result as a new tensor.

  40. def stopGradient(): Output

    Permalink

    $OpDocBasicStopGradient

    $OpDocBasicStopGradient

    returns

    Result as a new tensor which has the same value as this tensor.

  41. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  42. def tile(multiples: Output): Output

    Permalink

    $OpDocBasicTile

    $OpDocBasicTile

    multiples

    One-dimensional tensor containing the tiling multiples. Its length must be the same as the rank of input.

    returns

    Result as a new tensor.

  43. def transpose(permutation: Output = null, conjugate: Boolean = false): Output

    Permalink

    $OpDocBasicTranspose

    $OpDocBasicTranspose

    permutation

    Permutation of the input tensor dimensions.

    conjugate

    If true, then the complex conjugate of the transpose result is returned.

    returns

    Result as a new tensor.

  44. def unique(axis: Output, indicesDataType: types.DataType = INT32): (Output, Output)

    Permalink

    $OpDocBasicUnique

    $OpDocBasicUnique

    axis

    Axis along which to compute the unique values.

    indicesDataType

    Data type of the returned indices. Must be INT32 or INT64.

    returns

    Tuple containing output and indices.

  45. def uniqueWithCounts(axis: Output = 0, indicesDataType: types.DataType = INT32): (Output, Output, Output)

    Permalink

    $OpDocBasicUniqueWithCounts

    $OpDocBasicUniqueWithCounts

    axis

    Axis along which to count the unique elements.

    indicesDataType

    Data type of the returned indices. Must be INT32 or INT64.

    returns

    Tuple containing output, indices, and counts.

  46. def unstack(number: Int, axis: Int = 0): Seq[Output]

    Permalink

    $OpDocBasicUnstack

    $OpDocBasicUnstack

    number

    Number of tensors to unstack. If set to -1 (the default value), its value will be inferred.

    axis

    Dimension along which to unstack the input tensor.

    returns

    Result as a new tensor.

  47. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  48. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  49. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  50. def where(): Output

    Permalink

    $OpDocBasicWhere

    $OpDocBasicWhere

    returns

    Result as a new tensor.

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

BasicOps

Ungrouped