# Week 1 assignment 1 conv\_forward()

**URL:** <https://community.deeplearning.ai/t/week-1-assignment-1-conv-forward/14990>\
**Category:** Convolutional Neural Networks\
**Tags:** coursera-platform\
**Created:** [June 18, 2021, 4:02am UTC](https://community.deeplearning.ai/t/week-1-assignment-1-conv-forward/14990 "2021-06-18T04:02:25Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![yash\_3](https://sea1.discourse-cdn.com/dlai/user_avatar/community.deeplearning.ai/yash_3/32/1430_2.png) [@yash\_3](https://community.deeplearning.ai/u/yash_3)\
**Post date:** [June 18, 2021, 4:02am UTC](https://community.deeplearning.ai/t/week-1-assignment-1-conv-forward/14990/1 "2021-06-18T04:02:25Z")

</div>

In conv\_forward() not know how to select vertical start and end , due to this I’m stuck at this assignment for 3 days.Please help

---

<div class="post-metadata">

**Author:** ![TMosh](https://sea1.discourse-cdn.com/dlai/user_avatar/community.deeplearning.ai/tmosh/32/9321_2.png) [@TMosh](https://community.deeplearning.ai/u/TMosh)\
**Post date:** [June 18, 2021, 4:26am UTC](https://community.deeplearning.ai/t/week-1-assignment-1-conv-forward/14990/2 "2021-06-18T04:26:26Z")

</div>

Vertical start is h \* stride.  
Vertical end is vertical start plus f.

---

<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:** [June 18, 2021, 4:54am UTC](https://community.deeplearning.ai/t/week-1-assignment-1-conv-forward/14990/3 "2021-06-18T04:54:35Z")

</div>

Right! And the analogous logic applies for _horiz\_start_ and _horiz\_end_. The way to think about this is that the loops in _conv\_forward_ are over the _ **output** _ space. Then at each iteration you need to calculate the correct corresponding position in the _ **input** _ space, which is what @TMosh has showed you how to do.
