@@ -73,14 +73,12 @@ void build_graph(it_lab_ai::Tensor& input, it_lab_ai::Tensor& output,
7373 it_lab_ai::Tensor tmp_bias = it_lab_ai::make_tensor (tensor.get_bias ());
7474 auto conv_layer = std::make_shared<it_lab_ai::ConvolutionalLayer>(
7575 1 , pads, 1 , tmp_values, tmp_bias, impl2);
76- conv_layer->setName (it_lab_ai::kConvolution );
7776 layers.push_back (conv_layer);
7877 layerpostop.push_back (false );
7978 if (comments) std::cout << " ConvLayer added to layers." << std::endl;
8079 }
8180 if (layer_type.find (" relu" ) != std::string::npos) {
8281 auto ew_layer = std::make_shared<it_lab_ai::EWLayer>(" relu" );
83- ew_layer->setName (it_lab_ai::kElementWise );
8482 layers.push_back (ew_layer);
8583 layerpostop.push_back (true );
8684 if (comments)
@@ -101,7 +99,6 @@ void build_graph(it_lab_ai::Tensor& input, it_lab_ai::Tensor& output,
10199 //
102100 tensor = tmp_tensor;
103101 auto fc_layer = std::make_shared<it_lab_ai::FCLayer>(tensor, tmp_bias);
104- fc_layer->setName (it_lab_ai::kFullyConnected );
105102 layers.push_back (fc_layer);
106103 layerpostop.push_back (false );
107104 if (comments) std::cout << " DenseLayer added to layers." << std::endl;
@@ -120,7 +117,6 @@ void build_graph(it_lab_ai::Tensor& input, it_lab_ai::Tensor& output,
120117 << std::endl;
121118 auto pool_layer =
122119 std::make_shared<it_lab_ai::PoolingLayer>(shape, pooltype, impl1);
123- pool_layer->setName (it_lab_ai::kPooling );
124120 layers.push_back (pool_layer);
125121 layerpostop.push_back (false );
126122 if (comments) std::cout << " PoolingLayer added to layers." << std::endl;
@@ -129,15 +125,13 @@ void build_graph(it_lab_ai::Tensor& input, it_lab_ai::Tensor& output,
129125 if (layer_type.find (" Flatten" ) != std::string::npos) {
130126 auto flatten_layer = std::make_shared<it_lab_ai::FlattenLayer>(
131127 std::vector<size_t >({0 , 3 , 2 , 1 }));
132- flatten_layer->setName (it_lab_ai::kFlatten );
133128 layers.push_back (flatten_layer);
134129 layerpostop.push_back (false );
135130 if (comments) std::cout << " FlattenLayer added to layers." << std::endl;
136131 }
137132
138133 if (layer_type.find (" Dropout" ) != std::string::npos) {
139134 auto dropout_layer = std::make_shared<it_lab_ai::DropOutLayer>(0.0 );
140- dropout_layer->setName (it_lab_ai::kDropout );
141135 layers.push_back (dropout_layer);
142136 layerpostop.push_back (false );
143137 if (comments)
@@ -151,7 +145,6 @@ void build_graph(it_lab_ai::Tensor& input, it_lab_ai::Tensor& output,
151145 std::cout << " number of layers - " << layers.size () + 1 << std::endl;
152146 it_lab_ai::Graph graph (static_cast <int >(layers.size ()));
153147 it_lab_ai::InputLayer a1 (it_lab_ai::kNchw , it_lab_ai::kNchw );
154- a1.setName (it_lab_ai::kInput );
155148
156149 if (comments) std::cout << " InputLayer created." << std::endl;
157150
0 commit comments