File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
paddle/gserver/gradientmachines Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -16,7 +16,6 @@ limitations under the License. */
16
16
17
17
#include " NeuralNetwork.h"
18
18
#include " hl_gpu.h"
19
- #include " paddle/gserver/layers/AgentLayer.h"
20
19
#include " paddle/utils/CustomStackTrace.h"
21
20
#include " paddle/utils/Logging.h"
22
21
#include " paddle/utils/Stat.h"
@@ -28,6 +27,7 @@ limitations under the License. */
28
27
#ifndef PADDLE_MOBILE_INFERENCE
29
28
#include " MultiNetwork.h"
30
29
#include " RecurrentGradientMachine.h"
30
+ #include " paddle/gserver/layers/AgentLayer.h"
31
31
#endif
32
32
33
33
namespace paddle {
@@ -192,9 +192,11 @@ void NeuralNetwork::init(const ModelConfig& config,
192
192
void NeuralNetwork::connect (LayerPtr agentLayer,
193
193
LayerPtr realLayer,
194
194
int height) {
195
+ #ifndef PADDLE_MOBILE_INFERENCE
195
196
AgentLayer* agent = dynamic_cast <AgentLayer*>(agentLayer.get ());
196
197
CHECK_NOTNULL (agent);
197
198
agent->setRealLayer (realLayer, height);
199
+ #endif
198
200
}
199
201
200
202
void NeuralNetwork::connect (std::string agentLayerName,
You can’t perform that action at this time.
0 commit comments