-
Notifications
You must be signed in to change notification settings - Fork 209
Closed
Description
Thanks for all the hard work on this.
In v0.102.8 CPU there is a minor bug:
Tensor.diagonal()
has its final argument (dim2
) set to 0, whilst documentation states this should be 1.
// dim2:
// Second dimension with respect to which to take diagonal. Default: 1.
//
This causes an exception if calling diagonal without stating all arguments explicitly.
public Tensor diagonal(long offset = 0L, long dim1 = 0L, long dim2 = 0L)
should be
...
public Tensor diagonal(long offset = 0L, long dim1 = 0L, long dim2 = 1L)
Thanks
Metadata
Metadata
Assignees
Labels
No labels