PaddlePaddle / models

Officially maintained, supported by PaddlePaddle, including CV, NLP, Speech, Rec, TS, big models and so on.
Apache License 2.0
6.9k stars 2.91k forks source link

similarity_net在fluid1.4版本下的并行训练问题 #2297

Open ybbz opened 5 years ago

ybbz commented 5 years ago

现在直接用官方提供的similarity_net,提示

ParallelExecutor is deprecated. Please use CompiledProgram and Executor. CompiledProgram is a central place for optimization and Executor is the unified executor. Example can be found in compiler.py. W0523 11:22:05.580132 14117 graph.h:204] WARN: After a series of passes, the current graph can be quite different from OriginProgram. So, please avoid using the OriginProgram() method!

应该没有使用多个cpu并行训练,系统只有一个cpu在使用。

看了另外一个issue:https://github.com/PaddlePaddle/models/issues/2102 也遇到过类似报错,说是需要用统一的Executor接口。

官方提供的similarity_net代码是不是需要更新下了?

frankwhzhang commented 5 years ago

这个只是warning 还是可以用的

ybbz commented 5 years ago

并行还能用吗? @frankwhzhang

frankwhzhang commented 5 years ago

可以用的