Japanese-BPEEncoder_V2 icon indicating copy to clipboard operation
Japanese-BPEEncoder_V2 copied to clipboard

Pool実行時に_procが読み込まれない環境がある(encode_swe.py)

Open agiataiga opened this issue 2 years ago • 0 comments

encode_swe.pyを実行時に AttributeError: Can't get attribute '_proc' on <module 'mp_main' from '***' が起きることがあります。(python3.8 Macで発生。) MultiProcessingのタイミングで起きるらしく

with Pool(args.num_process) as p:
    p.map(_proc, list(range(args.num_process)))

の前に一旦_proc()を実行すると無事に動くのですが、念のためご報告します。

agiataiga avatar Apr 12 '22 05:04 agiataiga