@@ -410,12 +410,18 @@ [Pure]public static (Tensor std, Tensor mean) std_mean(Tensor input, (long, long
410
410
[ Pure ] public static Tensor sum ( Tensor input , long dim , bool keepdim = false , ScalarType ? type = null ) => input . sum ( dim , keepdim , type ) ;
411
411
412
412
// https://pytorch.org/docs/stable/generated/torch.unique
413
- [ Pure ] static ( Tensor output , Tensor ? inverse_indices , Tensor ? counts ) unique (
413
+ /// <summary>
414
+ /// Returns the unique elements of the input tensor.
415
+ /// </summary>
416
+ [ Pure ] public static ( Tensor output , Tensor ? inverse_indices , Tensor ? counts ) unique (
414
417
Tensor input , bool sorted = true , bool return_inverse = false , bool return_counts = false , int ? dim = null )
415
418
=> input . unique ( sorted , return_inverse , return_counts , dim ) ;
416
419
417
420
// https://pytorch.org/docs/stable/generated/torch.unique_consecutive
418
- [ Pure ] static ( Tensor output , Tensor ? inverse_indices , Tensor ? counts ) unique_consecutive (
421
+ /// <summary>
422
+ /// Eliminates all but the first element from every consecutive group of equivalent elements.
423
+ /// </summary>
424
+ [ Pure ] public static ( Tensor output , Tensor ? inverse_indices , Tensor ? counts ) unique_consecutive (
419
425
Tensor input , bool return_inverse = false , bool return_counts = false , int ? dim = null )
420
426
=> input . unique_consecutive ( return_inverse , return_counts , dim ) ;
421
427
0 commit comments