Skip to content

Latest commit

 

History

History

fwd_py

Demo for using Forward-Python

  1. Build Forward-Python libraries refer to CMake-Build.

  2. Copy forward.cpython.xxx*.so (Linux) or forward.xxx*.pyd (Windows) in the build/bin into the workspace directory of Python project. For example, the directory is organized as:

---- workspace
   |
   -- test_forward_torch.py
   |
   -- test_forward_tf.py
   |
   -- test_forward_onnx.py
   |
   -- softmax.pb
   |
   -- softmax.pt
   |
   -- softmax.onnx
   |
   -- forward.cpython.xxx*.so
  1. Use the build-used Python (Used in CMake-Build) to import forward.

Notice: The name of INPUT in models can be viewed by model viewers, such as Netron.