# Week1 Assignment 1: The sequence of computation in the video do not match the code

**URL:** <https://community.deeplearning.ai/t/week1-assignment-1-the-sequence-of-computation-in-the-video-do-not-match-the-code/238403>\
**Category:** Convolutional Neural Networks\
**Tags:** coursera-platform\
**Created:** [December 4, 2022, 9:26pm UTC](https://community.deeplearning.ai/t/week1-assignment-1-the-sequence-of-computation-in-the-video-do-not-match-the-code/238403 "2022-12-04T21:26:11Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![asobhy](https://avatars.discourse-cdn.com/v4/letter/a/e36b37/32.png) [@asobhy](https://community.deeplearning.ai/u/asobhy)\
**Post date:** [December 4, 2022, 9:26pm UTC](https://community.deeplearning.ai/t/week1-assignment-1-the-sequence-of-computation-in-the-video-do-not-match-the-code/238403/1 "2022-12-04T21:26:11Z")

</div>

in conv\_forward() the steps executed are as follows:

- get previous activation  
loop over slices
  - get a slice from previous activation  
loop over filters:
    - convolve the slice with all the channels, i.e all the filters
    - move to the next slice

While in the provided video in the assignment the sequence of execution is different and is as follows:

- get a previous activation  
loop over filters:  
loop over slices:  
- get a slice from the previous activation  
- convolve the slice with current filter  
- move to the next slice

I know the outcome is the same but I find it confusing when watching the video and then trying to write the code in conv\_forward()

---

<div class="post-metadata">

**Author:** ![reinoudbosch](https://avatars.discourse-cdn.com/v4/letter/r/22d042/32.png) [@reinoudbosch](https://community.deeplearning.ai/u/reinoudbosch)\
**Post date:** [December 5, 2022, 9:18am UTC](https://community.deeplearning.ai/t/week1-assignment-1-the-sequence-of-computation-in-the-video-do-not-match-the-code/238403/2 "2022-12-05T09:18:04Z")

</div>

Hi asobhy,

Thanks for reporting this! Let me notify the team, so this can be taken on board for future revisions.  
@Mubsi

---

<div class="post-metadata">

**Author:** ![Mubsi](https://sea1.discourse-cdn.com/dlai/user_avatar/community.deeplearning.ai/mubsi/32/94983_2.png) [@Mubsi](https://community.deeplearning.ai/u/Mubsi)\
**Post date:** [December 5, 2022, 12:52pm UTC](https://community.deeplearning.ai/t/week1-assignment-1-the-sequence-of-computation-in-the-video-do-not-match-the-code/238403/3 "2022-12-05T12:52:46Z")

</div>

Hi @asobhy & @asobhy,

Thank you for reporting this. This has been noted.

Thanks,  
Mubsi

---

<div class="post-metadata">

**Author:** ![asobhy](https://avatars.discourse-cdn.com/v4/letter/a/e36b37/32.png) [@asobhy](https://community.deeplearning.ai/u/asobhy)\
**Post date:** [December 18, 2022, 12:56am UTC](https://community.deeplearning.ai/t/week1-assignment-1-the-sequence-of-computation-in-the-video-do-not-match-the-code/238403/4 "2022-12-18T00:56:31Z")

</div>

Thank you for the reply. I was mistaken, I misunderstood that part. There is no issue with the video.
