Skip to content

Commit 56f28a0

Browse files
authored
Merge pull request #5732 from tensor-tang/rename
rename all Mkldnn to MKLDNN
2 parents 1f00a70 + f5df46e commit 56f28a0

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

paddle/gserver/layers/MKLDNNLayer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ namespace paddle {
2121

2222
bool MKLDNNLayer::init(const LayerMap& layerMap,
2323
const ParameterMap& parameterMap) {
24-
CHECK(FLAGS_use_mkldnn) << "MkldnnLayers only support use_mkldnn."
24+
CHECK(FLAGS_use_mkldnn) << "MKLDNNLayers only support use_mkldnn."
2525
<< "Please set WITH_MKL=ON "
2626
<< "and set use_mkldnn=True";
2727
CHECK(!useGpu_) << "Do not support GPU yet";

paddle/gserver/tests/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ gserver_test(test_KmaxSeqScore)
2929
gserver_test(test_Expand)
3030
gserver_test(test_MaxPoolingWithMaskOutput)
3131

32-
########## test_Mkldnn layers and activations ##########
32+
########## test_MKLDNN layers and activations ##########
3333
if(WITH_MKLDNN)
3434
add_unittest_without_exec(test_MKLDNN
3535
test_MKLDNN.cpp

paddle/gserver/tests/MKLDNNTester.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ limitations under the License. */
2323
namespace paddle {
2424

2525
/**
26-
* @brief test the functionality of Mkldnnlayers
26+
* @brief test the functionality of MKLDNNlayers and MKLDNNActivations
2727
* refer to paddle original function
2828
*/
2929
class MKLDNNTester {

python/paddle/trainer/config_parser.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1826,7 +1826,7 @@ def __init__(self,
18261826
self.layer_type = 'mkldnn_fc'
18271827
config_assert(
18281828
len(inputs) == 1,
1829-
"MkldnnFCLayer support one and only one input!")
1829+
"MKLDNNFCLayer support one and only one input!")
18301830
super(FCLayer, self).__init__(
18311831
name, self.layer_type, size, inputs=inputs, **xargs)
18321832
for input_index in xrange(len(self.inputs)):
@@ -1837,7 +1837,7 @@ def __init__(self,
18371837
sparse = format == "csr" or format == "csc"
18381838
if use_mkldnn:
18391839
config_assert(not sparse,
1840-
"MkldnnFCLayer do not support sparse format yet")
1840+
"MKLDNNFCLayer do not support sparse format yet")
18411841
if use_mkldnn_wgt:
18421842
dims = [self.config.size, input_layer.size]
18431843
if sparse:
@@ -1853,7 +1853,7 @@ def __init__(self,
18531853

18541854

18551855
@config_layer('mkldnn_fc')
1856-
class MkldnnFcLayer(FCLayer):
1856+
class MKLDNNFcLayer(FCLayer):
18571857
layer_type = 'mkldnn_fc'
18581858

18591859

0 commit comments

Comments
 (0)