Skip to content

Commit 0520828

Browse files
committed
fix docstring
Signed-off-by: 0oshowero0 <o0shower0o@outlook.com>
1 parent 54d919d commit 0520828

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

transfer_queue/utils/tensor_utils.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,7 @@ def compute_stride(shape: tuple[int, ...]) -> tuple[int, ...]:
110110

111111

112112
def get_nbytes(dtypes, shapes) -> list[int]:
113+
"""Calculate number of bytes according to tensor dtypes and shapes."""
113114
assert len(dtypes) == len(shapes)
114115
nbytes = []
115116
for i in range(len(dtypes)):

0 commit comments

Comments
 (0)