Skip to content
Discussion options

You must be logged in to vote

Resolved:Just refer to the code of onnxruntime for gpu.
self.onnx_session = onnxruntime.InferenceSession(onnx_path)
self.onnx_session.set_providers(['CUDAExecutionProvider'], [ {'device_id': 1}])

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by Trytoz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant