Skip to content

Commit fe03305

Browse files
yuzawa-sangithub-actions[bot]
authored andcommitted
ORT v1.24.3 bump
1 parent 7fae8ab commit fe03305

File tree

3 files changed

+5
-78
lines changed

3 files changed

+5
-78
lines changed

ORT_VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.24.2
1+
1.24.3

src/main/java/com/jyuzawa/onnxruntime_extern/OrtEnvCreationOptions.java

Lines changed: 0 additions & 73 deletions
Original file line numberDiff line numberDiff line change
@@ -183,79 +183,6 @@ public static void log_id(MemorySegment struct, MemorySegment fieldValue) {
183183
struct.set(log_id$LAYOUT, log_id$OFFSET, fieldValue);
184184
}
185185

186-
/**
187-
* {@snippet lang=c :
188-
* OrtLoggingFunction custom_logging_function
189-
* }
190-
*/
191-
public static final class custom_logging_function {
192-
193-
private custom_logging_function() {
194-
// Should not be called directly
195-
}
196-
197-
/**
198-
* The function pointer signature, expressed as a functional interface
199-
*/
200-
public interface Function {
201-
void apply(
202-
MemorySegment _x0,
203-
int _x1,
204-
MemorySegment _x2,
205-
MemorySegment _x3,
206-
MemorySegment _x4,
207-
MemorySegment _x5);
208-
}
209-
210-
private static final FunctionDescriptor $DESC = FunctionDescriptor.ofVoid(
211-
onnxruntime_all_h.C_POINTER,
212-
onnxruntime_all_h.C_INT,
213-
onnxruntime_all_h.C_POINTER,
214-
onnxruntime_all_h.C_POINTER,
215-
onnxruntime_all_h.C_POINTER,
216-
onnxruntime_all_h.C_POINTER);
217-
218-
/**
219-
* The descriptor of this function pointer
220-
*/
221-
public static FunctionDescriptor descriptor() {
222-
return $DESC;
223-
}
224-
225-
private static final MethodHandle UP$MH =
226-
onnxruntime_all_h.upcallHandle(custom_logging_function.Function.class, "apply", $DESC);
227-
228-
/**
229-
* Allocates a new upcall stub, whose implementation is defined by {@code fi}.
230-
* The lifetime of the returned segment is managed by {@code arena}
231-
*/
232-
public static MemorySegment allocate(custom_logging_function.Function fi, Arena arena) {
233-
return Linker.nativeLinker().upcallStub(UP$MH.bindTo(fi), $DESC, arena);
234-
}
235-
236-
private static final MethodHandle DOWN$MH = Linker.nativeLinker().downcallHandle($DESC);
237-
238-
/**
239-
* Invoke the upcall stub {@code funcPtr}, with given parameters
240-
*/
241-
public static void invoke(
242-
MemorySegment funcPtr,
243-
MemorySegment _x0,
244-
int _x1,
245-
MemorySegment _x2,
246-
MemorySegment _x3,
247-
MemorySegment _x4,
248-
MemorySegment _x5) {
249-
try {
250-
DOWN$MH.invokeExact(funcPtr, _x0, _x1, _x2, _x3, _x4, _x5);
251-
} catch (Error | RuntimeException ex) {
252-
throw ex;
253-
} catch (Throwable ex$) {
254-
throw new AssertionError("should not reach here", ex$);
255-
}
256-
}
257-
}
258-
259186
private static final AddressLayout custom_logging_function$LAYOUT =
260187
(AddressLayout) $LAYOUT.select(groupElement("custom_logging_function"));
261188

src/main/java/com/jyuzawa/onnxruntime_extern/onnxruntime_all_h.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1214,7 +1214,7 @@ private static class OrtGetApiBase {
12141214
/**
12151215
* Function descriptor for:
12161216
* {@snippet lang=c :
1217-
* const OrtApiBase *OrtGetApiBase(void)
1217+
* const OrtApiBase *OrtGetApiBase()
12181218
* }
12191219
*/
12201220
public static FunctionDescriptor OrtGetApiBase$descriptor() {
@@ -1224,7 +1224,7 @@ private static class OrtGetApiBase {
12241224
/**
12251225
* Downcall method handle for:
12261226
* {@snippet lang=c :
1227-
* const OrtApiBase *OrtGetApiBase(void)
1227+
* const OrtApiBase *OrtGetApiBase()
12281228
* }
12291229
*/
12301230
public static MethodHandle OrtGetApiBase$handle() {
@@ -1234,7 +1234,7 @@ private static class OrtGetApiBase {
12341234
/**
12351235
* Address for:
12361236
* {@snippet lang=c :
1237-
* const OrtApiBase *OrtGetApiBase(void)
1237+
* const OrtApiBase *OrtGetApiBase()
12381238
* }
12391239
*/
12401240
public static MemorySegment OrtGetApiBase$address() {
@@ -1243,7 +1243,7 @@ private static class OrtGetApiBase {
12431243

12441244
/**
12451245
* {@snippet lang=c :
1246-
* const OrtApiBase *OrtGetApiBase(void)
1246+
* const OrtApiBase *OrtGetApiBase()
12471247
* }
12481248
*/
12491249
public static MemorySegment OrtGetApiBase() {

0 commit comments

Comments
 (0)