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.
- Host: GitHub
- URL: https://github.com/agentmaker/ppqi.jl
- Owner: AgentMaker
- License: apache-2.0
- Created: 2021-04-17T11:27:03.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2021-04-18T05:49:58.000Z (almost 5 years ago)
- Last Synced: 2025-03-24T04:41:19.621Z (about 1 year ago)
- Language: Julia
- Homepage:
- Size: 23.4 KB
- Stars: 19
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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
```