diff --git a/paddle/gserver/layers/MKLPackedGemm.h b/paddle/gserver/layers/MKLPackedGemm.h index 3c4c62eeb87f6ad3b5517ab5e8f80156210626e2..91e2515e323217b71558efb64215d4bd8050f7b1 100644 --- a/paddle/gserver/layers/MKLPackedGemm.h +++ b/paddle/gserver/layers/MKLPackedGemm.h @@ -27,7 +27,7 @@ protected: size_t weightWidth_; public: - MKLPackedGemm(MatrixPtr weight) { + explicit MKLPackedGemm(MatrixPtr weight) { weightHeight_ = weight->getHeight(); weightWidth_ = weight->getWidth(); weightPacked_ = @@ -91,4 +91,5 @@ public: cblas_sgemm_free(weightTPacked_); } }; + } // namespace paddle diff --git a/paddle/gserver/layers/MKLPackedRecurrentLayer.h b/paddle/gserver/layers/MKLPackedRecurrentLayer.h index 719137f2db74f88ef97a82a430e9f6cc70e2efd1..b8727e0ff309940e1773a2b95c12c08a2211ceaa 100644 --- a/paddle/gserver/layers/MKLPackedRecurrentLayer.h +++ b/paddle/gserver/layers/MKLPackedRecurrentLayer.h @@ -12,6 +12,8 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ +#pragma once + #include #include "Layer.h" #include "MKLPackedGemm.h" @@ -128,4 +130,5 @@ protected: std::unique_ptr sgemm_packed_; }; -} + +} // namespace paddle