Tensor to classification

Tensor to classification

Given a tensor representing classification results, outputs the indices of accepted classes and the corresponding tensor values.

Inputs

tensor
An input tensor of confidence values in which at most one dimension differs from one. The tool will reshape the tensor to a 1-by-N matrix.
confidenceThreshold
The minimum confidence value that will be accepted. Set to zero to accept all values.
maxResultCount
The maximum number of accepted results. Set to one to pick only the entry with the greatest confidence.

Outputs

index
The indices of selected entries as a N-by-1 matrix.
confidence
The corresponding confidence values in the input tensor, sorted in descending order.