# Week 1 , Programming Assignment: Convolution Model Application

**URL:** <https://dlai.staged-by-discourse.com/t/week-1-programming-assignment-convolution-model-application/87907>\
**Category:** Convolutional Neural Networks\
**Tags:** coursera-platform\
**Created:** [January 17, 2022, 7:20pm UTC](https://dlai.staged-by-discourse.com/t/week-1-programming-assignment-convolution-model-application/87907 "2022-01-17T19:20:09Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![paulinpaloalto](https://sea1.discourse-cdn.com/dlaistaging/user_avatar/dlai.staged-by-discourse.com/paulinpaloalto/32/187_2.png) [@paulinpaloalto](https://dlai.staged-by-discourse.com/u/paulinpaloalto)\
**Post date:** [January 17, 2022, 8:15pm UTC](https://dlai.staged-by-discourse.com/t/week-1-programming-assignment-convolution-model-application/87907/2 "2022-01-17T20:15:17Z")

</div>

The first invocation of ReLU is incorrect. The second one is closer, but maybe more complicated than you need. This is the Keras Functional API, so each layer function happens in two steps:

You invoke the layer function to define the parameters that you want. That gives you back an instantiated function.

Then step 2 is that you invoke that function with an explicit input tensor. It gives you back an output tensor or whatever the defined outputs of that layer function are.

So just saying

`A1 = tfl.ReLU(Z1)`

is not what you want. That probably throws an error or just defines A1 as a function, not a tensor.

[Here’s a thread](http://dlai.staged-by-discourse.com/t/tips-for-troubles-with-sequential-and-functional-api-syntax/52202) with a good introduction to the Sequential and Functional APIs.

---

_[View the full topic](https://dlai.staged-by-discourse.com/t/week-1-programming-assignment-convolution-model-application/87907)._
