@@ -60,22 +60,23 @@ TEST(ParallelExecutor, Construction) {
6060
6161 // First test with a backend not yet created
6262 unique_ptr<NGraphExecutor> executor;
63- ASSERT_THROW (executor = unique_ptr<NGraphExecutor>(
64- new NGraphExecutor ( 100 , 500 , 600 , input_graph, " bogus" , 5 )),
63+ ASSERT_THROW (executor = unique_ptr<NGraphExecutor>(new NGraphExecutor (
64+ 100 , 500 , 600 , input_graph, " bogus" , " xyz_500 " , 5 )),
6565 std::runtime_error);
6666
6767 // Next test with a null graph not yet created
68- ASSERT_THROW (executor = unique_ptr<NGraphExecutor>(
69- new NGraphExecutor ( 100 , 500 , 600 , input_graph, " bogus" , 12 )),
68+ ASSERT_THROW (executor = unique_ptr<NGraphExecutor>(new NGraphExecutor (
69+ 100 , 500 , 600 , input_graph, " bogus" , " xyz_500 " , 12 )),
7070 std::runtime_error);
7171
7272 // Now read the graph
7373 ASSERT_OK (LoadGraphFromPbTxt (" test_axpy_launchop.pbtxt" , input_graph));
7474
7575 // Next test with a backend after creating
7676 tf::ngraph_bridge::BackendManager::CreateBackend (" INTERPRETER" );
77- ASSERT_NO_THROW (executor = unique_ptr<NGraphExecutor>(new NGraphExecutor (
78- 100 , 500 , 600 , input_graph, " INTERPRETER" , 16 )));
77+ ASSERT_NO_THROW (
78+ executor = unique_ptr<NGraphExecutor>(new NGraphExecutor (
79+ 100 , 500 , 600 , input_graph, " INTERPRETER" , " xyz_500" , 16 )));
7980
8081 // Now that the object has been cobstructed, test various internal parts
8182 // TODO: Create a Test Class and mark that as a friend of the Executor class
@@ -93,7 +94,8 @@ TEST(ParallelExecutor, CompilerTest) {
9394 ASSERT_OK (LoadGraphFromPbTxt (" test_axpy_launchop.pbtxt" , input_graph));
9495
9596 tf::ngraph_bridge::BackendManager::CreateBackend (" INTERPRETER" );
96- NGraphExecutor executor (100 , 500 , 600 , input_graph, " INTERPRETER" , 10 );
97+ NGraphExecutor executor (100 , 500 , 600 , input_graph, " INTERPRETER" , " xyz_500" ,
98+ 10 );
9799
98100 // Create the inputs for this graph
99101 Tensor x (DT_FLOAT, TensorShape ({2 , 3 }));
@@ -132,7 +134,8 @@ TEST(ParallelExecutor, ExecuteOnSingleThread) {
132134 unique_ptr<tf::Graph> input_graph;
133135 ASSERT_OK (LoadGraphFromPbTxt (" test_axpy_launchop.pbtxt" , input_graph));
134136 tf::ngraph_bridge::BackendManager::CreateBackend (" INTERPRETER" );
135- NGraphExecutor executor (100 , 500 , 600 , input_graph, " INTERPRETER" , 12 );
137+ NGraphExecutor executor (100 , 500 , 600 , input_graph, " INTERPRETER" , " xyz_500" ,
138+ 12 );
136139
137140 // Create the inputs for this graph
138141 Tensor x (DT_FLOAT, TensorShape ({2 , 3 }));
@@ -214,7 +217,8 @@ TEST(ParallelExecutor, ExecuteOnSingleThread8Bit) {
214217 }
215218
216219 tf::ngraph_bridge::BackendManager::CreateBackend (backend_name);
217- NGraphExecutor executor (100 , 500 , 600 , input_graph, backend_name, 5 );
220+ NGraphExecutor executor (100 , 500 , 600 , input_graph, backend_name, " xyz_500" ,
221+ 5 );
218222
219223 // Create the inputs for this graph
220224 Tensor x (DT_INT8, TensorShape ({2 , 2 }));
@@ -296,7 +300,8 @@ TEST(ParallelExecutor, ExecuteOnMultipleThreads8Bit) {
296300 }
297301
298302 tf::ngraph_bridge::BackendManager::CreateBackend (backend_name);
299- NGraphExecutor executor (100 , 500 , 600 , input_graph, backend_name, 16 );
303+ NGraphExecutor executor (100 , 500 , 600 , input_graph, backend_name, " xyz_500" ,
304+ 16 );
300305
301306 // Create the inputs for this graph
302307 Tensor x (DT_INT8, TensorShape ({2 , 2 }));
@@ -383,7 +388,8 @@ TEST(ParallelExecutor, ExecuteOnMultipleThreads) {
383388 unique_ptr<tf::Graph> input_graph;
384389 ASSERT_OK (LoadGraphFromPbTxt (" test_axpy_launchop.pbtxt" , input_graph));
385390 tf::ngraph_bridge::BackendManager::CreateBackend (" INTERPRETER" );
386- NGraphExecutor executor (100 , 500 , 600 , input_graph, " INTERPRETER" , 16 );
391+ NGraphExecutor executor (100 , 500 , 600 , input_graph, " INTERPRETER" , " xyz_500" ,
392+ 16 );
387393
388394 // Create the inputs for this graph
389395 Tensor x (DT_FLOAT, TensorShape ({2 , 3 }));
0 commit comments