torch.UniqueOptions
export interface UniqueOptions {
/** Whether to sort the unique elements in ascending order (default: true) */
sorted?: boolean;
/** Whether to return the indices of the unique elements (default: false) */
return_inverse?: boolean;
/** Whether to return the counts of each unique element (default: false) */
return_counts?: boolean;
/** The dimension along which to find unique values (optional) */
dim?: number;
}sorted(boolean)optional- – Whether to sort the unique elements in ascending order (default: true)
return_inverse(boolean)optional- – Whether to return the indices of the unique elements (default: false)
return_counts(boolean)optional- – Whether to return the counts of each unique element (default: false)
dim(number)optional- – The dimension along which to find unique values (optional)
Options for unique operations