Skip to content

Commit

Permalink
Fix builds for OpenCV, PyTorch, and TensorFlow Lite
Browse files Browse the repository at this point in the history
  • Loading branch information
saudet committed Jul 9, 2023
1 parent b9d4b08 commit 31ee8a2
Show file tree
Hide file tree
Showing 16 changed files with 149 additions and 1,274 deletions.
2 changes: 1 addition & 1 deletion opencv/cppbuild.sh
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ cd opencv_contrib-$OPENCV_VERSION
patch -Np1 < ../../../opencv_contrib.patch

cd ../opencv-$OPENCV_VERSION
patch -Np1 < ../../../opencv.patch || true
patch -Np1 < ../../../opencv.patch
#patch -Np1 < ../../../opencv-cudnn8.patch
patch -Np1 < ../../../opencv-linux-ppc64le.patch

Expand Down
250 changes: 130 additions & 120 deletions opencv/opencv.patch

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions pytorch/src/main/java/org/bytedeco/pytorch/presets/torch.java
Original file line number Diff line number Diff line change
Expand Up @@ -3006,15 +3006,15 @@ public void map(InfoMap infoMap) {
"std::function<void(Module&)>").pointerTypes("ModuleFunction"))
.put(new Info("std::function<void(std::vector<c10::IValue>&)>",
"std::function<void(std::vector<IValue>&)>").pointerTypes("IValueCallback"))
.put(new Info("std::function<bool(std::ostream&,const IValue&v)>").pointerTypes("CustomFormatter"))
.put(new Info("std::function<bool(const IValue&)>").pointerTypes("IValueVisitor"))
.put(new Info("std::function<bool(std::ostream&,const c10::IValue&)>").pointerTypes("CustomFormatter"))
.put(new Info("std::function<bool(const c10::IValue&)>").pointerTypes("IValueVisitor"))
.put(new Info("std::function<size_t(char*,size_t)>").pointerTypes("Reader"))
.put(new Info("std::function<at::DataPtr(const std::string&)>").pointerTypes("RecordReader"))
.put(new Info("std::function<void(const char*data_start,size_tdata_len)>",
"std::function<void(const char*,size_t)>").pointerTypes("Writer"))
.put(new Info("std::function<std::string(const at::Tensor&)>").pointerTypes("TensorIdGetter"))
.put(new Info("std::function<c10::QualifiedName(const c10::ClassTypePtr&)>").pointerTypes("TypeRenamer"))
.put(new Info("std::function<size_t(uint64_tpos,void*buf,size_tnbytes)>").pointerTypes("ReadFunction"))
.put(new Info("std::function<c10::QualifiedName(const std::shared_ptr<c10::ClassType>&)>").pointerTypes("TypeRenamer"))
.put(new Info("std::function<size_t(uint64_t,void*,size_t)>").pointerTypes("ReadFunction"))
.put(new Info("std::function<size_t(const void*,size_t)>").pointerTypes("WriteFunction"))
.put(new Info("std::function<size_t(void)>").pointerTypes("SizeFunction"))
.put(new Info("std::function<Tensor()>").pointerTypes("LossClosure"))
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -549,10 +549,6 @@ public class Interpreter extends Pointer {
* part of the graph identified by a SignatureDef. The nullptr is returned if
* the given signature key is not valid.
* The async delegate should be applied before calling this function. */
public native AsyncSignatureRunner GetAsyncSignatureRunner(
@Cast("const char*") BytePointer signature_key);
public native AsyncSignatureRunner GetAsyncSignatureRunner(
String signature_key);

/** \warning Experimental interface, subject to change. \n
* \brief Return the subgraph index that corresponds to a SignatureDef,
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Loading

0 comments on commit 31ee8a2

Please sign in to comment.