[QuickFix] Check weight access for the last
authorJihoon Lee <jhoon.it.lee@samsung.com>
Mon, 15 Nov 2021 04:47:13 +0000 (13:47 +0900)
committerJijoong Moon <jijoong.moon@samsung.com>
Fri, 19 Nov 2021 04:56:37 +0000 (13:56 +0900)
commit9cfce447758a34e18e2e7f385a798e3e44ef6f3d
tree11c4711ebcb5ae03fb7767adc669e3a872ca6662
parent381b290c76bddebf3529cd049816b1b1c819c807
[QuickFix] Check weight access for the last

This patch sets lastGradientAccess and firstGraidentAccess based on the
weight access order for non-trainable tensor.

This is a improviser and must be handled in a correct way.

**Self evaluation:**
1. Build test: [X]Passed [ ]Failed [ ]Skipped
2. Run test: [X]Passed [ ]Failed [ ]Skipped

Signed-off-by: Jihoon Lee <jhoon.it.lee@samsung.com>
nntrainer/graph/network_graph.cpp
nntrainer/layers/layer_context.h
nntrainer/layers/layer_node.cpp
nntrainer/tensor/manager.cpp
nntrainer/tensor/manager.h
test/unittest/models/models_test_utils.cpp