[rebase] Rebase fix
authorParichay Kapoor <pk.kapoor@samsung.com>
Thu, 2 Sep 2021 06:59:30 +0000 (15:59 +0900)
committerJijoong Moon <jijoong.moon@samsung.com>
Tue, 5 Oct 2021 04:54:00 +0000 (13:54 +0900)
This patch adds rebase fix.

Signed-off-by: Parichay Kapoor <pk.kapoor@samsung.com>
nntrainer/graph/network_graph.cpp

index 6bb0135..c8cbb41 100644 (file)
@@ -426,6 +426,9 @@ void NetworkGraph::setBatchSize(unsigned int batch_size) {
     return;
 
   this->batch_size = batch_size;
+  if (!input_list.empty() and input_list[0]->getDim().batch() == batch_size)
+    return;
+
   auto allocated = tensor_manager->isAllocated();
 
   if (allocated)