Skip to content

Commit

Permalink
[cherry pick ]fix bug for encryption infer (#25980)
Browse files Browse the repository at this point in the history
* fix bug
bug fix
  • Loading branch information
MRXLT authored Aug 10, 2020
1 parent 363c4d3 commit acf95ba
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions paddle/fluid/framework/io/crypto/cipher.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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 {

Expand Down Expand Up @@ -59,7 +56,7 @@ std::shared_ptr<Cipher> CipherFactory::CreateCipher(
}

} // namespace framework
#ifdef ON_INFER
#ifdef PADDLE_ON_INFERENCE
std::shared_ptr<framework::Cipher> MakeCipher(const std::string& config_file) {
return framework::CipherFactory::CreateCipher(config_file);
}
Expand Down

0 comments on commit acf95ba

Please sign in to comment.