Commit 67be11c7 authored by Ying Sheng's avatar Ying Sheng
Browse files

fix bug of race condition in copy()

parent cd8c3ccd
......@@ -252,9 +252,8 @@ class StreamExecutor:
return ret
def fork(self, number: int, position_ids_offset: Optional[List[int]] = None):
if number > 1:
self.submit(SglCommitLazy())
self.sync()
self.submit(SglCommitLazy())
self.sync()
number = int(number)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment