javacpp
javacpp copied to clipboard
The missing bridge between Java and native C++
Hi everyone, Creating a byte[] from a NetParameter can be done as follows : ``` java byte[] byteModel = new byte[netParameter.ByteSize()]; netParameter.SerializeWithCachedSizesToArray(byteModel); ``` How can I do the other way?...
Due to unsafe methods getting intensified it is faster than native. So perhaps it might be an idea to replace where appropriate with Unsafe use. Also using Unsafe to access...
Hi everyone, I am using `FloatMemoryDataLayer` to pass data to the net via `Reset` method using `FloatPointers` as follows : `solver.net().layer_by_name(FloatMemoryDataLayer.class, "dataLayer")` `.Reset(dataFloatPointer, labelFloatPointer, numberOfSamples);` I see that there's the...
Hi, We recently hit this race condition issue with `javacpp.Loader class`. The issue happens when you have multiple JVMs running on the same machine, like in Spark. It manifests as...
I have an error during creation jni lib by javacpp in case I have function with callback with std::string_view parameter ``` greeter-jni.cpp:1858:9: error: no matching function for call to 'testStringView'...
The cache dir can be set via the system property `org.bytedeco.javacpp.cachedir` The `Loader.getCacheDir()` method will try this path, plus some others, and if creating all of these fails, it throws...
I am building a process for OpenSensorHub on Jetson TX2 using Gradle and I am getting an error when initializing the process: ```UnsatisfiedLinkError: no jniopencv_core``` My build.gradle dependencies are setup...
If we have in C++: ```c++ void f(T t); ``` and: ```Java new Info("T").pointerTypes("T1", "T2"); ``` we generate: ```Java void f(T1 t); void f(T2 t); ``` If the function takes...
As described in #732. Title pretty much sums it up. Templated constructors and operators (but not plain functions) are ignored when they have `std::vector` as a parameter. The behavior is...
I am using a library that uses JavaCPP. In the logs, I see the following error message: `Error getting method ID of java/lang/RuntimeException/ ` This log message is created in...