#include "ModelBuilder.h"
+#include "CompilationBuilder.h"
+
#if 0
#define LOG_TAG "ModelBuilder"
-#include "CompilationBuilder.h"
#include "Utils.h"
#include <map>
return ANEURALNETWORKS_NO_ERROR;
#endif
}
-#if 0 // CompilationBuilder is needed.
+
int ModelBuilder::createCompilation(CompilationBuilder** compilation) {
- // Dummy Implementation
- return 0;
-#if 0
if (!mCompletedModel) {
- LOG(ERROR) << "ANeuralNetworksCompilation_create passed an unfinished model";
+ // TODO-NNRT Uncomment once LOG is available
+ // LOG(ERROR) << "ANeuralNetworksCompilation_create passed an unfinished model";
*compilation = nullptr;
return ANEURALNETWORKS_BAD_STATE;
}
*compilation = new CompilationBuilder(this);
return (*compilation ? ANEURALNETWORKS_NO_ERROR : ANEURALNETWORKS_OUT_OF_MEMORY);
-#endif
}
-#endif
+
int ModelBuilder::finish() {
// Dummy Implementation
return 0;
#endif
namespace android {
namespace nn {
-#if 0
+
class CompilationBuilder;
+
+#if 0
class Device;
class ExecutionPlan;
class ExecutionStep;
int finish();
bool isFinished() const { return mCompletedModel; }
-#if 0 // CompilationBuilder is needed.
int createCompilation(CompilationBuilder** compilation);
-#endif
#if 0 // NeuralNetworksWrapper.h is needed.
void setHidlModel(Model* model) const;
#endif