It might be frustrating to find out that the only approach you knew to flatten suddenly doesn’t apply to your data at hand. Hence it doesn’t hurt to keep a few of them handy, because you never know ¯\_(ツ)_/¯. Its embarrassingly obvious, but the most important point to realize is that:
Short #3 | Flattening 2D lists VS 2D Tensors
Short #3 | Flattening 2D lists VS 2D Tensors
Short #3 | Flattening 2D lists VS 2D Tensors
It might be frustrating to find out that the only approach you knew to flatten suddenly doesn’t apply to your data at hand. Hence it doesn’t hurt to keep a few of them handy, because you never know ¯\_(ツ)_/¯. Its embarrassingly obvious, but the most important point to realize is that: