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
accept(TString tensor)
long
computeRequiredSize()
Compute the minimum size for a tensor to hold all the data provided by the source.

Inherited Methods

boolean
equals(Object arg0)
final Class<?>
getClass()
int
hashCode()
final void
notify()
final void
notifyAll()
String
toString()
final void
wait(long arg0, int arg1)
final void
wait(long arg0)
final void
wait()
abstract void
accept(TString arg0)
abstract Consumer<TString>
andThen(Consumer<? super T> arg0)

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