ResultCode ANeuralNetworksMemory_createFromFd(size_t size, int protect, int fd, size_t offset,
ANeuralNetworksMemory **memory)
{
- std::cout << __FUNCTION__ << "()" << std::endl;
*memory = new ANeuralNetworksMemory;
+
+ std::cout << __FUNCTION__ << "() --> (memory: " << *memory << ")" << std::endl;
+
return ANEURALNETWORKS_NO_ERROR;
}
ResultCode ANeuralNetworksModel_create(ANeuralNetworksModel **model)
{
- std::cout << __FUNCTION__ << "(" << model << ")" << std::endl;
-
*model = new ANeuralNetworksModel;
+ std::cout << __FUNCTION__ << "(" << model << ") --> (model: " << *model << ")" << std::endl;
+
return ANEURALNETWORKS_NO_ERROR;
}
ResultCode ANeuralNetworksCompilation_create(ANeuralNetworksModel *model,
ANeuralNetworksCompilation **compilation)
{
- std::cout << __FUNCTION__ << "(model: " << model << ")" << std::endl;
-
*compilation = new ANeuralNetworksCompilation;
+ std::cout << __FUNCTION__ << "(model: " << model << ") --> (compilation: " << *compilation << ")"
+ << std::endl;
+
return ANEURALNETWORKS_NO_ERROR;
}
ResultCode ANeuralNetworksExecution_create(ANeuralNetworksCompilation *compilation,
ANeuralNetworksExecution **execution)
{
- std::cout << __FUNCTION__ << "(compilation: " << compilation << ")" << std::endl;
-
*execution = new ANeuralNetworksExecution;
+ std::cout << __FUNCTION__ << "(compilation: " << compilation << ") --> (execution: " << *execution
+ << ")" << std::endl;
+
return ANEURALNETWORKS_NO_ERROR;
}
ResultCode ANeuralNetworksExecution_startCompute(ANeuralNetworksExecution *execution,
ANeuralNetworksEvent **event)
{
- std::cout << __FUNCTION__ << "(execution: " << execution << ")" << std::endl;
-
*event = new ANeuralNetworksEvent;
+ std::cout << __FUNCTION__ << "(execution: " << execution << ") --> (event: " << *event << ")"
+ << std::endl;
+
return ANEURALNETWORKS_NO_ERROR;
}