Skip to content

Commit

Permalink
define TfLiteGpuDelegateV2CreateAsync function for android
Browse files Browse the repository at this point in the history
  • Loading branch information
barrypitman committed Aug 20, 2024
1 parent 13c95d5 commit 5890823
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -187,9 +187,7 @@ public void map(InfoMap infoMap) {
infoMap.put(new Info("delegate.h").linePatterns("#if defined\\(__ANDROID__\\)", "#endif").skip());
} else {
infoMap.put(new Info("TfLiteGpuDelegateV2CreateAsync").cppTypes("TfLiteDelegate*").javaText(
"#if defined(__ANDROID__)\n" +
"public static native @ByVal Pointer TfLiteGpuDelegateV2CreateAsync(@Const @ByRef TfLiteGpuDelegateOptionsV2 options);\n" +
"#endif"
"public static native @ByVal Pointer TfLiteGpuDelegateV2CreateAsync(@Const @ByRef TfLiteGpuDelegateOptionsV2 options);"
));
}
}
Expand Down

0 comments on commit 5890823

Please sign in to comment.