# Does Flattening Order make a difference to the FC layers?

**URL:** <https://community.deeplearning.ai/t/does-flattening-order-make-a-difference-to-the-fc-layers/476066>\
**Category:** Convolutional Neural Networks\
**Tags:** coursera-platform\
**Created:** [October 23, 2023, 11:57pm UTC](https://community.deeplearning.ai/t/does-flattening-order-make-a-difference-to-the-fc-layers/476066 "2023-10-23T23:57:09Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![paulinpaloalto](https://sea1.discourse-cdn.com/dlai/user_avatar/community.deeplearning.ai/paulinpaloalto/32/187_2.png) [@paulinpaloalto](https://community.deeplearning.ai/u/paulinpaloalto)\
**Post date:** [October 24, 2023, 3:06am UTC](https://community.deeplearning.ai/t/does-flattening-order-make-a-difference-to-the-fc-layers/476066/7 "2023-10-24T03:06:32Z")

</div>

Even though the flattening separates some adjacent pixels, the geometric relationships can still be learned. Remember that we also flatten 2D images in the plain vanilla FC network case and it can still learn to recognize the spatial relationships. The point is that it can recognize them in any of the unrolling patterns, because the behavior is learned. That’s the point. What matters is only that you are consistent in how you do the unrolling in all cases: you decide which method you are going to use and then you use that one method everywhere. [Here’s a thread](https://community.deeplearning.ai/t/flattening-images-in-the-logistic-regression-assignment-in-course-1-week-2/149) which discusses this purely from the point of view of the Fully Connected networks in DLS C1. Make sure to read all the way through the thread to see the discussion about the different possible unrolling orders. I claim that the same reasoning applies to the case of FC layers at the end of a series of Conv and Pooling layers: back prop will still “connect” across the “flatten” step using the flatten method that you chose.

---

_[View the full topic](https://community.deeplearning.ai/t/does-flattening-order-make-a-difference-to-the-fc-layers/476066)._
