Nov 2022 help with compute_layer_style_cost

How you do the reshape and transpose matters. I’m not sure which November 2022 thread you are referring to, but here’s a thread which discusses the reshape issues in some detail. You might want to go back and read the earlier posts on that thread to get more context, but then read that post and the next one that demonstrates the difference in the methods of flattening.