@@ -21,7 +21,7 @@ using std::endl;
2121using std::string;
2222using Clock = std::chrono::high_resolution_clock;
2323
24- auto get_model (css &daqName, css &outputBlob, const bool allowFp16,
24+ auto get_model (css &daqName, const bool allowFp16,
2525 const PreferenceCode &compilePreference) {
2626 std::unique_ptr<Model> model;
2727 ModelBuilder builder;
@@ -31,10 +31,9 @@ auto get_model(css &daqName, css &outputBlob, const bool allowFp16,
3131 daq_reader.ReadDaq (daqName, builder, false );
3232#if __ANDROID_API__ >= __ANDROID_API_P__
3333 model = builder.AllowFp16 (allowFp16)
34- .AddOutput (outputBlob)
3534 .Compile (compilePreference);
3635#else
37- model = builder.AddOutput (outputBlob). Compile (compilePreference);
36+ model = builder.Compile (compilePreference);
3837#endif
3938 return model;
4039}
@@ -62,13 +61,12 @@ int main(int argc, char **argv) {
6261 return -1 ;
6362 }
6463 css daqName = argv[1 ];
65- css outputBlob = argv[2 ];
66- const int numberRunning = std::atoi (argv[3 ]);
67- const bool quant = std::atoi (argv[4 ]) != 0 ;
64+ const int numberRunning = std::atoi (argv[2 ]);
65+ const bool quant = std::atoi (argv[3 ]) != 0 ;
6866
6967 size_t inputLen, outputLen;
7068 {
71- auto model = get_model (daqName, outputBlob, false ,
69+ auto model = get_model (daqName, false ,
7270 ANEURALNETWORKS_PREFER_FAST_SINGLE_ANSWER);
7371 inputLen = model->GetSize (model->GetInputs ()[0 ]);
7472 outputLen = model->GetSize (model->GetOutputs ()[0 ]);
0 commit comments