未验证 提交 6559229b 编写于 作者: M MRXLT 提交者: GitHub

fix encryption infer (#25979)

* add encrypt for inference lib

* fix code;test=develop

* fix test; test=develop

* bug fix; test=develop

* add MakeCipher;test=develop

* fix bug;test=develop

* move MakeCipher to paddle space; test=develop

* fix include dir ;test=develop

* add include dir; test=develop

* move include; test=develop

* move include; test=develop

* fix for windows ci

* fix cmake; test=develop

* fix bug

bug fix
上级 8caee2ad
......@@ -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<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);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册