Have a question? Connect with the community at the TensorFlow Forum Visit Forum

TStringInitializer

public final class TStringInitializer

Helper class for initializing a TString tensor.

Public Constructors

TStringInitializer ( NdArray <T> source, Function<T, byte[]> byteExtractor)

Public Methods

void
long
computeRequiredSize ()
Compute the minimum size for a tensor to hold all the data provided by the source.

Inherited Methods

Public Constructors

public TStringInitializer ( NdArray <T> source, Function<T, byte[]> byteExtractor)

Public Methods

public void accept ( TString tensor)

public long computeRequiredSize ()

Compute the minimum size for a tensor to hold all the data provided by the source.

Returns
  • minimum tensor size, in bytes