paddle

command module
v0.0.0-...-cc06156 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 23, 2023 License: MIT Imports: 14 Imported by: 0

README

paddle

The official guide provides step-by-step instructions to install Paddle Inference Go API, but obviously it's tedious to do it manually.

paddle is a CLI tool that does the hard work to give you "one-click installation".

Installation

$ go install github.com/go-aie/paddle/cmd/paddle@latest
Usage
$ paddle install -h
Usage: paddle install <url>

Install Paddle Inference Go API.

Arguments:
  <url>    The URL of the compressed Paddle Inference C Library.

Flags:
  -h, --help          Show context-sensitive help.

  -o, --out=STRING    The output directory.
  -f, --force         Force to download Paddle Inference C Library (even if it already exists).
  -v, --verbose       Print the progress messages.

Install Paddle Inference Go API

$ cd <your-project-root-path>
$ paddle install -v <url-of-paddle-inference-c-lib>

Note:

  • <your-project-root-path>: The root path of your local project.
  • <url-of-paddle-inference-c-lib>: Check out 下载安装 Linux 推理库 to select the C library you need.
  • Since paddle install will modify the read-only Go module cache, most of the time, you need the sudo privilege to run the command (i.e. sudo paddle install ...).

Take Mac M1 as an example, we should select the C library labeled as "m1" and run:

$ cd example-project-on-mac-m1
$ paddle install -v https://paddle-inference-lib.bj.bcebos.com/2.4.1/cxx_c/MacOS/m1_clang_noavx_openblas/paddle_inference_c_install_dir.tgz

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL