An open API service indexing awesome lists of open source software.

https://github.com/agentmaker/ppqi.jl

Julia Version PaddlePaddle Quick Inference.
https://github.com/agentmaker/ppqi.jl

Last synced: 10 months ago
JSON representation

Julia Version PaddlePaddle Quick Inference.

Awesome Lists containing this project

README

          

# PPQI.jl
Julia Version PaddlePaddle Quick Inference.

# Install Package
```julia
using Pkg

Pkg.add(url="https://github.com/AgentMaker/PPQI.jl")
```

# API Reference
* load_config:

```julia
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:

```julia
function load_model(
config::PyObject
)::InferenceModel

return model::InferenceModel
```

* InferenceModel:

```julia
struct InferenceModel
predictor::PyObject
input_handles::Vector{PyObject}
output_handles::Vector{PyObject}
end
```

* model_forward:

```julia
function model_forward(
model::InferenceModel,
input_datas::Vector
)::Vector

return output_datas::Vector
```