I need to change output of last layer after training in test phase.
"a flag you could pass to it and select the desired code path (with the manipulation) "
for this part can you give me code of pytorch?