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
revert-24895-update_cub
MRXLT 5 years ago committed by GitHub
parent 8caee2ad51
commit 6559229b7e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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);
}

Loading…
Cancel
Save