Skip to content

AgentMaker/PPQI.jl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PPQI.jl

Julia Version PaddlePaddle Quick Inference.

Install Package

using Pkg

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

API Reference

  • 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

About

Julia Version PaddlePaddle Quick Inference.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Languages