[layer] Bug fix for permute layer
authorParichay Kapoor <pk.kapoor@samsung.com>
Fri, 19 Nov 2021 10:07:02 +0000 (19:07 +0900)
committerJijoong Moon <jijoong.moon@samsung.com>
Mon, 29 Nov 2021 07:09:44 +0000 (16:09 +0900)
Permute layer backward bug in the calculation of the reverse
direction of the permute is fixed.

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

index 9c53cc2..068d3dd 100644 (file)
@@ -59,7 +59,7 @@ void PermuteLayer::finalize(InitLayerContext &context) {
 
     /*** @todo deprecate this */
     direction_str = buildTrasposeString(direction);
-    rdirection_str = buildTrasposeString(direction);
+    rdirection_str = buildTrasposeString(reverse_direction);
   };
 
   initiate_direction();