Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
zjsun
fish-speech
Commits
957b98c0
Commit
957b98c0
authored
Oct 10, 2023
by
Lengyue
Committed by
zjsun
Sep 03, 2025
Browse files
Close buffer safely
parent
599529ec
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
preparing_data/wenet_clean/compress_tar.py
preparing_data/wenet_clean/compress_tar.py
+2
-0
No files found.
preparing_data/wenet_clean/compress_tar.py
View file @
957b98c0
...
@@ -30,6 +30,8 @@ def chunked_tarring(rank, file_list, base_folder, output_folder, chunk_size=1024
...
@@ -30,6 +30,8 @@ def chunked_tarring(rank, file_list, base_folder, output_folder, chunk_size=1024
chunk_count
+=
1
chunk_count
+=
1
total_size
=
0
total_size
=
0
buffer
.
close
()
buffer
=
io
.
BytesIO
()
buffer
=
io
.
BytesIO
()
tar
=
tarfile
.
open
(
fileobj
=
buffer
,
mode
=
"w"
)
tar
=
tarfile
.
open
(
fileobj
=
buffer
,
mode
=
"w"
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment