The dummy executable calls model creation/freeing API.
SET (RUNTIME_SRCS NeuralNetworks.cpp)
add_library(runtime SHARED ${RUNTIME_SRCS})
-target_include_directories(runtime PRIVATE . include)
+include_directories(runtime PRIVATE . include)
# Executable `runtime_run` (Dummy runner executable for simple testing bring-up stage)
# TODO remove the executable later
file(GLOB SRCS *.cc)
-file(GLOB HDRS *.h)
-add_executable(runtime_run ${SRCS} ${HDRS})
-target_include_directories(runtime_run PRIVATE .)
+add_executable(runtime_run ${SRCS})
+target_link_libraries(runtime_run runtime)
-#include <iostream>
-#include "main.h"
+#include "NeuralNetworks.h"
int main()
{
- std::cout << HELLO_RUNTIME << std::endl;
+ // This is a simple test for bring-up stage
+ // TODO Remove this file when we have unit tests ready.
+
+ // Create model
+ ANeuralNetworksModel* model = NULL;
+ ANeuralNetworksModel_create(&model);
+
+ // Delete model
+ ANeuralNetworksModel_free(model);
+
return 0;
}
+++ /dev/null
-#ifndef __RUNTIME_MAIN_H__
-#define __RUNTIME_MAIN_H__
-
-const char *HELLO_RUNTIME = "Hello Runtime!";
-
-#endif // __RUNTIME_MAIN_H__