-
Build Forward-Python libraries refer to CMake-Build.
-
Copy
forward.cpython.xxx*.so
(Linux) orforward.xxx*.pyd
(Windows) in thebuild/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
- 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.