Skip to content

Commit acf95ba

Browse files
authored
[cherry pick ]fix bug for encryption infer (#25980)
* fix bug bug fix
1 parent 363c4d3 commit acf95ba

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

paddle/fluid/framework/io/crypto/cipher.cc

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,6 @@
1616
#include "paddle/fluid/framework/io/crypto/aes_cipher.h"
1717
#include "paddle/fluid/framework/io/crypto/cipher_utils.h"
1818
#include "paddle/fluid/platform/enforce.h"
19-
#ifdef ON_INFER
20-
#include "paddle/fluid/inference/api/paddle_api.h"
21-
#endif
2219
namespace paddle {
2320
namespace framework {
2421

@@ -59,7 +56,7 @@ std::shared_ptr<Cipher> CipherFactory::CreateCipher(
5956
}
6057

6158
} // namespace framework
62-
#ifdef ON_INFER
59+
#ifdef PADDLE_ON_INFERENCE
6360
std::shared_ptr<framework::Cipher> MakeCipher(const std::string& config_file) {
6461
return framework::CipherFactory::CreateCipher(config_file);
6562
}

0 commit comments

Comments
 (0)