Skip to content

Commit 4e39a4a

Browse files
WIP: linalg.eig: (CUDA)
-Fixed remaining edge cases vor linalg.eigvals (non empty matrices with empty batch dimension) Minor change
1 parent dd6cb8c commit 4e39a4a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

aten/src/ATen/native/cuda/linalg/BatchLinearAlgebraLib.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1643,7 +1643,7 @@ void apply_xgeev(const Tensor& values, const Tensor& vectors, const Tensor& inpu
16431643

16441644
int n = cuda_int_cast(input.size(-1), "n");
16451645
int lda = std::max<int64_t>(1, n);
1646-
auto batch_size = batchCount(vectors);
1646+
auto batch_size = batchCount(input);
16471647

16481648
if (n == 0 || batch_size == 0) {
16491649
//XGeev does not support empty input, so we need to handle this case separately to

0 commit comments

Comments
 (0)