From acf95ba56138785b801cb4580fd4cda945585094 Mon Sep 17 00:00:00 2001 From: MRXLT Date: Mon, 10 Aug 2020 19:42:11 +0800 Subject: [PATCH] [cherry pick ]fix bug for encryption infer (#25980) * fix bug bug fix --- paddle/fluid/framework/io/crypto/cipher.cc | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/paddle/fluid/framework/io/crypto/cipher.cc b/paddle/fluid/framework/io/crypto/cipher.cc index c258028e250..316f8f9c751 100644 --- a/paddle/fluid/framework/io/crypto/cipher.cc +++ b/paddle/fluid/framework/io/crypto/cipher.cc @@ -16,9 +16,6 @@ #include "paddle/fluid/framework/io/crypto/aes_cipher.h" #include "paddle/fluid/framework/io/crypto/cipher_utils.h" #include "paddle/fluid/platform/enforce.h" -#ifdef ON_INFER -#include "paddle/fluid/inference/api/paddle_api.h" -#endif namespace paddle { namespace framework { @@ -59,7 +56,7 @@ std::shared_ptr CipherFactory::CreateCipher( } } // namespace framework -#ifdef ON_INFER +#ifdef PADDLE_ON_INFERENCE std::shared_ptr MakeCipher(const std::string& config_file) { return framework::CipherFactory::CreateCipher(config_file); } -- GitLab