Skip to content

Commit

Permalink
Fix builds for TVM on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
saudet committed Nov 11, 2023
1 parent 8f2d975 commit 0fbf403
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 74 deletions.
70 changes: 0 additions & 70 deletions tvm/src/gen/java/org/bytedeco/tvm/WrappedPythonObject.java

This file was deleted.

10 changes: 7 additions & 3 deletions tvm/src/gen/java/org/bytedeco/tvm/global/tvm_runtime.java
Original file line number Diff line number Diff line change
Expand Up @@ -3003,7 +3003,7 @@ public static native int TVMObjectDerivedFrom(@Cast("uint32_t") int child_type_i
*/
@Namespace("tvm::runtime") public static native @Cast("const char*") BytePointer ArgTypeCode2Str(int type_code);

@Namespace("tvm::runtime") public static native @Cast("std::ostream*") @ByRef @Name("operator <<") Pointer shiftLeft(@Cast("std::ostream*") @ByRef Pointer os, @ByVal DLDevice dev); // NOLINT(*)
// NOLINT(*)

// macro to check type code.
// #define TVM_CHECK_TYPE_CODE(CODE, T)
Expand Down Expand Up @@ -3341,9 +3341,13 @@ public static native int TVMObjectDerivedFrom(@Cast("uint32_t") int child_type_i
* indicate an error happens, otherwise it returns normally.
*/
@Namespace("tvm::runtime") public static native void EnvCheckSignals();
// Targeting ../WrappedPythonObject.java


/** \brief A class that wraps a Python object and preserves its ownership.
<p>
* This class is used to wrap a PyObject* from the Python API and preserve its ownership.
* Allows for the creation of strong references to Python objects, which prevent them from being
* garbage-collected as long as the wrapper object exists.
*/
// Targeting ../Registry.java


Expand Down
4 changes: 3 additions & 1 deletion tvm/src/main/java/org/bytedeco/tvm/presets/tvm_runtime.java
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,9 @@ public void map(InfoMap infoMap) {
.put(new Info("tvm::runtime::ObjectPtr<tvm::runtime::Object>").pointerTypes("ObjectPtr"))
.put(new Info("tvm::runtime::ObjAllocatorBase<tvm::runtime::SimpleObjAllocator>",
"tvm::runtime::ObjAllocatorBase<SimpleObjAllocator>").pointerTypes("SimpleObjAllocatorBase"))
.put(new Info("tvm::runtime::ObjAllocatorBase<tvm::runtime::SimpleObjAllocator>::make_object").skip())
.put(new Info("tvm::runtime::ObjAllocatorBase<tvm::runtime::SimpleObjAllocator>::make_object",
"tvm::runtime::WrappedPythonObject",
"tvm::runtime::operator <<(std::ostream&, DLDevice)").skip())

.put(new Info("tvm::runtime::ADTObj").pointerTypes("ADTObj"))
.put(new Info("tvm::runtime::InplaceArrayBase<tvm::runtime::ADTObj,tvm::runtime::ObjectRef>",
Expand Down

0 comments on commit 0fbf403

Please sign in to comment.