24 auto data = model.
getOutputData(numSamples, operation, output);
30 return py::array_t<float>({
size[1] }, {
sizeof(float) }, data);
32 return py::array_t<float>(
34 {
size[0] *
size[2] *
sizeof(float),
size[2] *
sizeof(
float),
sizeof(float) },
Abstract neural net operation (layer).
virtual Size getOutputSize(int outputIndex=0) const
Returns full size of a specific operation output.
OperationClass & getOperation(const std::string &operationName)
Retrieves an operation by its name.
const float * getOutputData(size_t &numSamples, const std::string &operation, int output=0) const
Reads data from the model memory.
py::object getModelOutputDataByOp(NNets::Model &model, const NNets::AbstractOperation &operation, int output)
py::object getModelOutputDataByName(NNets::Model &model, const std::string &opName, int output)
JNIEnv jlong jobject jstring opName