1
+ /* Copyright (c) 2016 PaddlePaddle Authors. All Rights Reserve.
2
+
3
+ Licensed under the Apache License, Version 2.0 (the "License");
4
+ you may not use this file except in compliance with the License.
5
+ You may obtain a copy of the License at
6
+
7
+ http://www.apache.org/licenses/LICENSE-2.0
8
+
9
+ Unless required by applicable law or agreed to in writing, software
10
+ distributed under the License is distributed on an "AS IS" BASIS,
11
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ See the License for the specific language governing permissions and
13
+ limitations under the License. */
14
+
1
15
#include " PaddleCAPI.h"
2
16
#include " PaddleCAPIPrivate.h"
3
17
#include " paddle/gserver/gradientmachines/NeuralNetwork.h"
@@ -21,7 +35,7 @@ NeuralNetwork* newCustomNerualNetwork(const std::string& name,
21
35
NeuralNetwork* network) {
22
36
return new MyNeuralNetwork (name, network);
23
37
}
24
- }
38
+ } // namespace paddle
25
39
26
40
extern " C" {
27
41
int PDGradientMachineCreateForPredict (PD_GradiemtMachine* machine,
@@ -91,7 +105,6 @@ int PDGradientMachineCreateSharedParam(PD_GradiemtMachine origin,
91
105
auto p = o->machine ->getParameters ()[paramId];
92
106
param->enableSharedType (paddle::PARAMETER_VALUE,
93
107
p->getBuf (paddle::PARAMETER_VALUE));
94
-
95
108
},
96
109
{paddle::PARAMETER_VALUE},
97
110
false );
0 commit comments