Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
当我在A2C中使用ray创建actors和learner时,应该设置inter_op_parallelism_threadsand intra_op_parallelism_threadsto 1,还是默认保留?
inter_op_parallelism_threads
intra_op_parallelism_threads
1
这取决于您希望演员使用多少资源。如果给定 actor 有一台专用机器,并且该 actor 可以使用该机器上的所有资源,则使用 TensorFlow 的默认设置。如果您要创建更像每个核心一个演员,那么将inter_op_parallelism_threads和设置intra_op_parallelism_threads为像 1 或 2 这样的小值是个好主意。
一般来说,您可以尝试这两种方法,看看哪种方法更快。