torch.UniqueConsecutiveOptions
export interface UniqueConsecutiveOptions {
/** 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;
}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_consecutive operations