diff --git a/src/operator/tensor/matrix_op.cc b/src/operator/tensor/matrix_op.cc index f26b966f7e93..29d493ae5a54 100644 --- a/src/operator/tensor/matrix_op.cc +++ b/src/operator/tensor/matrix_op.cc @@ -829,8 +829,8 @@ will be the last dimension. Examples:: - x = mx.nd.array([1, 2]) - y = mx.nd.array([3, 4]) + x = [1, 2] + y = [3, 4] stack(x, y) = [[1, 2], [3, 4]]