diff --git a/src/operator/tensor/matrix_op.cc b/src/operator/tensor/matrix_op.cc index 3b1a49f4feee..ffdc228b2d64 100644 --- a/src/operator/tensor/matrix_op.cc +++ b/src/operator/tensor/matrix_op.cc @@ -830,8 +830,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]]