Commit d9a0bb6b by ‘chizw’

[+]内存优化

1 parent 793dfeba
......@@ -67,7 +67,7 @@ else:
model_revision='v2.0.4',
vad_model_revision='v2.0.4',
punc_model_revision='v2.0.4',
ncpu=8,
ncpu=4,
ngpu=0,
device="cpu",
batch_size=1,
......
......@@ -87,6 +87,7 @@ def consume_kafka():
# q = m.JoinableQueue()
# # 加载大内存变量
# larg_mem = np.random.normal(1.0, 0.1, 10000000)
# 使用`psutil`库或内置的`sys.getsizeof()`函数实时监控内存使用情况,及时发现异常。
for message in consumer_new:
if message is None:
continue
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!