# Graph execution error

**URL:** <https://community.deeplearning.ai/t/graph-execution-error/226415>\
**Category:** Convolutional Neural Networks in TensorFlow\
**Tags:** week-module-4\
**Created:** [November 4, 2022, 4:18am UTC](https://community.deeplearning.ai/t/graph-execution-error/226415 "2022-11-04T04:18:18Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rachel\_Nallathamby](https://avatars.discourse-cdn.com/v4/letter/r/c37758/32.png) [@Rachel\_Nallathamby](https://community.deeplearning.ai/u/Rachel_Nallathamby)\
**Post date:** [November 4, 2022, 4:18am UTC](https://community.deeplearning.ai/t/graph-execution-error/226415/1 "2022-11-04T04:18:18Z")

</div>

I have a feeling I’m confusing with the input shape. I have given input shape=(28,28,1)

 ![errorcnn](https://global.discourse-cdn.com/dlai/original/3X/1/b/1b4018cd8ddf545674d210e5d2d9eeb75b63cd7c.png)

---

<div class="post-metadata">

**Author:** ![Rachel\_Nallathamby](https://avatars.discourse-cdn.com/v4/letter/r/c37758/32.png) [@Rachel\_Nallathamby](https://community.deeplearning.ai/u/Rachel_Nallathamby)\
**Post date:** [November 4, 2022, 4:33am UTC](https://community.deeplearning.ai/t/graph-execution-error/226415/2 "2022-11-04T04:33:33Z")

</div>

Solved. I included a Flatten().  
Thanks
