TStringInitializer

Stay organized with collections Save and categorize content based on your preferences.
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

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