Commit 0a5f4d71 authored by pengcheng888's avatar pengcheng888
Browse files

issue/86 - 添加计算结束前的同步函数

parent efc19d7c
...@@ -224,6 +224,9 @@ class GenerationMixin: ...@@ -224,6 +224,9 @@ class GenerationMixin:
1.0, 1.0,
out=out, out=out,
) )
infinicore.sync_stream() # 计算结束前需要同步
end_time = time.time() end_time = time.time()
time_list.append((end_time - start_time) * 1000) time_list.append((end_time - start_time) * 1000)
......
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