Skip to content

Commit 494a633

Browse files
committed
Merge branch 'develop' of https://github.com/baidu/Paddle into bug_fix
2 parents 9a47b62 + c6d9d04 commit 494a633

20 files changed

+45
-84
lines changed

paddle/cuda/src/hl_cuda_cudnn.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@ limitations under the License. */
1414

1515
#include "hl_cuda_cudnn.h"
1616
#include <cudnn.h>
17+
#include <gflags/gflags.h>
1718
#include <mutex>
1819
#include "hl_cuda_cudnn.ph"
1920
#include "hl_dso_loader.h"
2021
#include "hl_thread.ph"
21-
#include "paddle/utils/CommandLineParser.h"
2222
#include "paddle/utils/Logging.h"
2323

2424
DEFINE_int32(cudnn_conv_workspace_limit_in_mb,

paddle/cuda/src/hl_dso_loader.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ See the License for the specific language governing permissions and
1313
limitations under the License. */
1414

1515
#include "hl_dso_loader.h"
16-
#include "paddle/utils/CommandLineParser.h"
16+
#include <gflags/gflags.h>
1717
#include "paddle/utils/Logging.h"
1818

1919
DEFINE_string(cudnn_dir,

paddle/gserver/layers/NormLayer.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ class NormLayer : public Layer {
5050
class ResponseNormLayer : public NormLayer {
5151
protected:
5252
size_t channels_, size_, outputX_, imgSize_, outputY_, imgSizeY_;
53-
float scale_, pow_;
53+
real scale_, pow_;
5454
MatrixPtr denoms_;
5555

5656
public:

paddle/gserver/layers/RecurrentLayer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1212
See the License for the specific language governing permissions and
1313
limitations under the License. */
1414

15+
#include <gflags/gflags.h>
1516
#include "Layer.h"
1617
#include "SequenceToBatch.h"
17-
#include "paddle/utils/CommandLineParser.h"
1818
#include "paddle/utils/Stat.h"
1919

2020
DEFINE_bool(rnn_use_batch, false, "Using the batch method for calculation.");

paddle/gserver/tests/TestUtil.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,8 @@ See the License for the specific language governing permissions and
1313
limitations under the License. */
1414

1515
#include "TestUtil.h"
16-
16+
#include <gflags/gflags.h>
1717
#include "paddle/math/SparseMatrix.h"
18-
#include "paddle/utils/CommandLineParser.h"
1918

2019
DEFINE_int32(fixed_seq_length, 0, "Produce some sequence of fixed length");
2120

paddle/gserver/tests/test_PyDataProvider2.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
from paddle.trainer.PyDataProvider2 import *
1818

1919

20-
@provider(input_types=[dense_vector(200, seq_type=SequenceType.NO_SEQUENCE)])
20+
@provider(slots=[dense_vector(200, seq_type=SequenceType.NO_SEQUENCE)])
2121
def test_dense_no_seq(setting, filename):
2222
for i in xrange(200):
2323
yield [(float(j - 100) * float(i + 1)) / 200.0 for j in xrange(200)]

paddle/math/SparseRowMatrix.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@ limitations under the License. */
1414

1515
#pragma once
1616

17+
#include <gflags/gflags.h>
1718
#include <string.h>
1819
#include <algorithm>
1920
#include "Matrix.h"
20-
#include "paddle/utils/CommandLineParser.h"
2121
#include "paddle/utils/Util.h"
2222

2323
DECLARE_bool(allow_inefficient_sparse_update);

paddle/parameter/Parameter.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ See the License for the specific language governing permissions and
1313
limitations under the License. */
1414

1515
#include "Parameter.h"
16+
#include <gflags/gflags.h>
1617
#include <fstream>
1718
#include "AverageOptimizer.h"
1819
#include "FirstOrderOptimizer.h"
@@ -23,7 +24,6 @@ limitations under the License. */
2324
#include "paddle/math/CpuSparseMatrix.h"
2425
#include "paddle/math/MathUtils.h"
2526
#include "paddle/math/SparseRowMatrix.h"
26-
#include "paddle/utils/CommandLineParser.h"
2727
#include "paddle/utils/Logging.h"
2828

2929
DEFINE_int32(enable_grad_share,

paddle/pserver/BaseClient.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ See the License for the specific language governing permissions and
1313
limitations under the License. */
1414

1515
#include "BaseClient.h"
16+
#include <gflags/gflags.h>
1617
#include <string.h>
1718
#include <vector>
18-
#include "paddle/utils/CommandLineParser.h"
1919
#include "paddle/utils/Stat.h"
2020

2121
DECLARE_string(pservers);

paddle/utils/CommandLineParser.cpp

Lines changed: 0 additions & 32 deletions
This file was deleted.

0 commit comments

Comments
 (0)