mirror of
https://github.com/PaddlePaddle/FastDeploy.git
synced 2025-10-05 16:48:03 +08:00
Merge branch 'develop' into set_stream_infer-shareExData
This commit is contained in:
@@ -195,6 +195,12 @@ class RuntimeOption:
|
||||
return self._option.set_model_buffer(model_buffer, params_buffer,
|
||||
model_format)
|
||||
|
||||
def set_encryption_key(self, encryption_key):
|
||||
"""When loading encrypted model, encryption_key is required to decrypte model
|
||||
:param encryption_key: (str)The key for decrypting model
|
||||
"""
|
||||
return self._option.set_encryption_key(encryption_key)
|
||||
|
||||
def use_gpu(self, device_id=0):
|
||||
"""Inference with Nvidia GPU
|
||||
|
||||
|
Reference in New Issue
Block a user