Skip to content

Commit

Permalink
[ort] Add support for registerCustomOpLibrary. (#1771)
Browse files Browse the repository at this point in the history
Change-Id: Ic3ec4249adb432b2a54668b7a45481698fa83ea5
  • Loading branch information
frankfliu authored Jul 6, 2022
1 parent a7ee401 commit 7cecdfd
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,11 @@ private SessionOptions getSessionOptions(Map<String, ?> options) throws OrtExcep
ortSession.setCPUArenaAllocator(true);
}

String customOpLibrary = (String) options.get("customOpLibrary");
if (customOpLibrary != null) {
ortSession.registerCustomOpLibrary(customOpLibrary);
}

Device device = manager.getDevice();
if (options.containsKey("ortDevice")) {
String ortDevice = (String) options.get("ortDevice");
Expand Down

0 comments on commit 7cecdfd

Please sign in to comment.