summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDjordje Senicic2018-12-07 06:40:36 -0600
committerDjordje Senicic2018-12-07 06:47:58 -0600
commit1a1249bb705e78bc6da222e9dc17537ce7053762 (patch)
treec4df88ebb535e2d4b35a7a61232d65e25f01e4c0
parent52cf01cb7cd6fc66e181711232c0c6025826cd14 (diff)
downloadtidl-api-1a1249bb705e78bc6da222e9dc17537ce7053762.tar.gz
tidl-api-1a1249bb705e78bc6da222e9dc17537ce7053762.tar.xz
tidl-api-1a1249bb705e78bc6da222e9dc17537ce7053762.zip
classification: Modify configuration structure to runFullNet before calling constructor for Execution Object
Signed-off-by: Djordje Senicic <x0157990@ti.com>
-rw-r--r--examples/classification/main.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/examples/classification/main.cpp b/examples/classification/main.cpp
index ead0daf..b907cd5 100644
--- a/examples/classification/main.cpp
+++ b/examples/classification/main.cpp
@@ -194,6 +194,9 @@ bool RunConfiguration(const std::string& config_file, int num_layers_groups, uin
194 if (verbose) 194 if (verbose)
195 configuration.enableApiTrace = true; 195 configuration.enableApiTrace = true;
196 196
197 if (num_layers_groups == 1)
198 configuration.runFullNet = true; //Force all layers to be in the same group
199
197 try 200 try
198 { 201 {
199 // Create ExecutionObjectPipelines 202 // Create ExecutionObjectPipelines
@@ -282,8 +285,6 @@ bool CreateExecutionObjectPipelines(uint32_t num_eves, uint32_t num_dsps,
282 e_dsp = num_dsps == 0 ? nullptr : 285 e_dsp = num_dsps == 0 ? nullptr :
283 new Executor(DeviceType::DSP, ids_dsp, configuration); 286 new Executor(DeviceType::DSP, ids_dsp, configuration);
284 287
285 configuration.runFullNet = true; //Force all layers to be in the same group
286
287 // Construct ExecutionObjectPipeline with single Execution Object to 288 // Construct ExecutionObjectPipeline with single Execution Object to
288 // process each frame. This is parallel processing of frames with 289 // process each frame. This is parallel processing of frames with
289 // as many DSP and EVE cores that we have on hand. 290 // as many DSP and EVE cores that we have on hand.