fix-doc: concat example

This commit is contained in:
Zheng-Ning Liu 2021-12-15 10:20:58 +08:00 committed by GitHub
parent b913cd8254
commit 03dd698e65
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 2 deletions

View File

@ -28,8 +28,9 @@ def concat(arr, dim):
Example::
jt.concat([jt.array([[1],[2]]), jt.array([[2],[2]])], dim=1)
# return [[1],[2],[2],[2]]
>>> jt.concat([jt.array([[1],[2]]), jt.array([[2],[2]])], dim=1)
jt.Var([[1 2]
[2 2]], dtype=int32)
'''
# TODO: low performance when concat lots of vars
total_dim = 0