# Course 4 week 1 Assignment 2 ex 1

**URL:** <https://community.deeplearning.ai/t/course-4-week-1-assignment-2-ex-1/201130>\
**Category:** Convolutional Neural Networks\
**Tags:** coursera-platform\
**Created:** [September 8, 2022, 10:35pm UTC](https://community.deeplearning.ai/t/course-4-week-1-assignment-2-ex-1/201130 "2022-09-08T22:35:16Z")\
**Posts on this page:** 1\
**Showing post:** 4

<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:** [September 9, 2022, 2:28am UTC](https://community.deeplearning.ai/t/course-4-week-1-assignment-2-ex-1/201130/4 "2022-09-09T02:28:47Z")

</div>

There are two different methods here: the Keras Sequential API and the Keras Functional API.

In the Sequential case, you only instantiate the “layer” functions and then make list with commas, as Tom pointed out.

In the Functional case, you both instantiate the “layers” and then actually invoke them with an input tensor. No commas required.

You are using the Sequential method, but you omitted the commas and the syntax that closes off the list and the Sequential declaration.

You can argue that they did not really give us much to go on here. You would probably be well served to spend a bit of time reading through [this thread](https://community.deeplearning.ai/t/tips-for-troubles-with-sequential-and-functional-api-syntax/52202) from fellow student _ai\_curious_ about how these two methods work.

---

_[View the full topic](https://community.deeplearning.ai/t/course-4-week-1-assignment-2-ex-1/201130)._
