clab / clab/dynet

Can I use more than one Computational Graph in different threads?

Open
#678 3 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
C++
Stars
3.4k
Forks
701
PR merge metrics
No merged PRs in 30d

Description

When I run my program with one thread, it works fine and there is always one computation graph at a time. However, I want to run it with multi-threads then I get the "Attempt to create >1 CG" error. Could you please tell me the reason assuming one CG, and if there is any chance to use more CG in different threads. I think it is safe since the model is not changed in my predict program. Thank you very much.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.