tensorflow是否在同一设备上并行执行图形的独立部分?

2024-09-28 22:35:15 发布

您现在位置:Python中文网/ 问答频道 /正文

考虑使用两个多层感知器的代码

#All these are one device
input = tf.some_place_holder
func1 = MLP1(input)
func2 = MLP2(input)
func3 = tf.some_function...(func1,func2)

tensorflow会在同一个设备上并行执行MLP1和MLP2吗?还是我必须明确地提到它才能这样做

提前谢谢


Tags: 代码inputdevicetfplacesomeallone