bytedeco/javacpp

FloatMemoryDataLayer Reset with float[] arrays

Open

#109 opened on Jun 21, 2016

View on GitHub
 (3 comments) (0 reactions) (0 assignees)Java (4,279 stars) (620 forks)batch import
help wantedquestion

Description

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 same Reset function that takes float[] instead of FloatPointer : public native void Reset(FloatPointer var1, FloatPointer var2, int var3); Anyone knows how to set var3 ? I tried many possible values (including numberOfSamples, etc.), but it doesn't seem to work, and I can't find any information about that.

Thank you in advance

Contributor guide