We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 363c4d3 commit acf95baCopy full SHA for acf95ba
paddle/fluid/framework/io/crypto/cipher.cc
@@ -16,9 +16,6 @@
16
#include "paddle/fluid/framework/io/crypto/aes_cipher.h"
17
#include "paddle/fluid/framework/io/crypto/cipher_utils.h"
18
#include "paddle/fluid/platform/enforce.h"
19
-#ifdef ON_INFER
20
-#include "paddle/fluid/inference/api/paddle_api.h"
21
-#endif
22
namespace paddle {
23
namespace framework {
24
@@ -59,7 +56,7 @@ std::shared_ptr<Cipher> CipherFactory::CreateCipher(
59
56
}
60
57
61
58
} // namespace framework
62
+#ifdef PADDLE_ON_INFERENCE
63
std::shared_ptr<framework::Cipher> MakeCipher(const std::string& config_file) {
64
return framework::CipherFactory::CreateCipher(config_file);
65
0 commit comments