outputLabelTensorName property

String outputLabelTensorName

Implementation

String get outputLabelTensorName =>
    base.ref.outputLabelTensorName.toDartString();
void outputLabelTensorName=(String value)

Set the name of the output label tensor, if the model has multiple outputs. Dafualt to "OUTPUT_LABEL".

See the section, Configure the input/output tensors for NLClassifier, for more details.

By default, label file should be packed with the output score tensor through Model Metadata. See the MetadataWriter for NLClassifier. NLClassifier reads and parses labels from the label file automatically. However, some models may output a specific label tensor instead. In this case, NLClassifier reads labels from the output label tensor.

Implementation

set outputLabelTensorName(String value) {
  base.ref.outputLabelTensorName = value.toNativeUtf8();
}