# I am getting error on shapes (10,1) and (3,10) not aligned: 1 (dim 1) != 3 (dim 0)

**URL:** <https://community.deeplearning.ai/t/i-am-getting-error-on-shapes-10-1-and-3-10-not-aligned-1-dim-1-3-dim-0/138393>\
**Category:** NLP with Classification and Vector Spaces\
**Tags:** week-module-1\
**Created:** [June 15, 2022, 5:58am UTC](https://community.deeplearning.ai/t/i-am-getting-error-on-shapes-10-1-and-3-10-not-aligned-1-dim-1-3-dim-0/138393 "2022-06-15T05:58:08Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Yakefu\_Mayila](https://avatars.discourse-cdn.com/v4/letter/y/5fc32e/32.png) [@Yakefu\_Mayila](https://community.deeplearning.ai/u/Yakefu_Mayila)\
**Post date:** [June 15, 2022, 5:58am UTC](https://community.deeplearning.ai/t/i-am-getting-error-on-shapes-10-1-and-3-10-not-aligned-1-dim-1-3-dim-0/138393/1 "2022-06-15T05:58:08Z")

</div>

Hi,  
I had the error of mismatching the shape.

 ![image](https://global.discourse-cdn.com/dlai/original/3X/8/b/8b9ff8fc32a1f2066a15372812b5e2e3fa9a3d0c.png)

---

<div class="post-metadata">

**Author:** ![balaji.ambresh](https://sea1.discourse-cdn.com/dlai/user_avatar/community.deeplearning.ai/balaji.ambresh/32/128697_2.png) [@balaji.ambresh](https://community.deeplearning.ai/u/balaji.ambresh)\
**Post date:** [June 15, 2022, 6:50am UTC](https://community.deeplearning.ai/t/i-am-getting-error-on-shapes-10-1-and-3-10-not-aligned-1-dim-1-3-dim-0/138393/2 "2022-06-15T06:50:22Z")

</div>

Inner dimensions have to be the same for dot product. It’s possible to dot 2 matrices of shapes `(a, b)` and `(b, c)` to get a result of shape `(a, c)`. Please check your code.
