We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DJL has profiler support for MXNet and PyTorch [REF]. I would like to request to extend this profiler support for ONNX engine also.
MXNet
PyTorch
ONNX
The text was updated successfully, but these errors were encountered:
You can enable onnxruntime profiler using the following code:
Path modelDir = Paths.get("YOUR_MODEL_DIR"); Model model = Model.newInstance("my_model"); OrtSession.SessionOptions ortOptions = new OrtSession.SessionOptions(); ortOptions.enableProfiling("out.txt"); Map<String, Object> options = new ConcurrentHashMap<>(); options.put("sessionOptions", ortOptions); model.load(modelDir, "mymodel.onnx", options);
Sorry, something went wrong.
See: #2472
With this PR, you can enable profiler in a more elegant way:
Criteria<Image, Classifications> criteria = Criteria.builder() .optOption("profilerOutput", "build/testOrtProfiling") ... .build()
Successfully merging a pull request may close this issue.
Description
DJL has profiler support for
MXNet
andPyTorch
[REF]. I would like to request to extend this profiler support forONNX
engine also.References
The text was updated successfully, but these errors were encountered: