Are you sure you want to delete this task? Once this task is deleted, it cannot be recovered.
jm12138 ffabb4f2b3 | 3 years ago | |
---|---|---|
src | 3 years ago | |
.gitignore | 3 years ago | |
LICENSE | 3 years ago | |
Project.toml | 3 years ago | |
README.md | 3 years ago |
Julia Version PaddlePaddle Quick Inference.
using Pkg
Pkg.add(url="https://github.com/AgentMaker/PPQI.jl")
load_config:
function load_config(
modelpath::String,
use_gpu::Bool=false,
gpu_id::Int=0,
use_mkldnn::Bool=false,
cpu_treads::Int=1
)::PyObject
return config::PyObject
load_model:
function load_model(
config::PyObject
)::InferenceModel
return model::InferenceModel
InferenceModel:
struct InferenceModel
predictor::PyObject
input_handles::Vector{PyObject}
output_handles::Vector{PyObject}
end
model_forward:
function model_forward(
model::InferenceModel,
input_datas::Vector
)::Vector
return output_datas::Vector
Dear OpenI User
Thank you for your continuous support to the Openl Qizhi Community AI Collaboration Platform. In order to protect your usage rights and ensure network security, we updated the Openl Qizhi Community AI Collaboration Platform Usage Agreement in January 2024. The updated agreement specifies that users are prohibited from using intranet penetration tools. After you click "Agree and continue", you can continue to use our services. Thank you for your cooperation and understanding.
For more agreement content, please refer to the《Openl Qizhi Community AI Collaboration Platform Usage Agreement》