Skip to content
New issue

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

BowlerStudio crashes when DJL predictor is ued #356

Open
madhephaestus opened this issue May 23, 2023 · 0 comments
Open

BowlerStudio crashes when DJL predictor is ued #356

madhephaestus opened this issue May 23, 2023 · 0 comments

Comments

@madhephaestus
Copy link
Member

Installed Version

2.0.0+

OS type and version number

linux

Expected behavior

do not crash

Actual Behavior

Error printed:

Program aborted due to an unhandled Error: Unable to find target for this triple (no targets are registered)

Steps to correct

you need to construct the Detector on the same thread you use it in. This is a bug deep in DJL. A work around is to make sure to call

		JniUtils.setGraphExecutorOptimize(false);

at the beginning of any thread where the predictors will be used.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant