A mutable object, similar to tf.Tensor, that allows users to set values at locations before converting to an immutable tf.Tensor.

See tf.buffer for creating a tensor buffer.

Doc

Type Parameters

  • R extends Rank

  • D extends DataType = "float32"

Methods

Methods

  • Returns the value in the buffer at the provided location.

    Parameters

    • Rest ...locs: number[]

      The location indices.

    Returns SingleValueMap[D]

    Doc

  • Sets a value in the buffer at a given location.

    Parameters

    • value: SingleValueMap[D]

      The value to set.

    • Rest ...locs: number[]

      The location indices.

    Returns void

    Doc

  • Creates an immutable tf.Tensor object from the buffer.

    Returns Tensor<R>

    Doc

Generated using TypeDoc