# 'Sequential' object has no attribute 'stop'

**URL:** <https://community.deeplearning.ai/t/sequential-object-has-no-attribute-stop/227471>\
**Category:** Introduction to TF for Artificial Intelligence ...\
**Tags:** week-module-3\
**Created:** [November 6, 2022, 7:36pm UTC](https://community.deeplearning.ai/t/sequential-object-has-no-attribute-stop/227471 "2022-11-06T19:36:05Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rafi\_Lavi](https://avatars.discourse-cdn.com/v4/letter/r/47e85d/32.png) [@Rafi\_Lavi](https://community.deeplearning.ai/u/Rafi_Lavi)\
**Post date:** [November 6, 2022, 7:36pm UTC](https://community.deeplearning.ai/t/sequential-object-has-no-attribute-stop/227471/1 "2022-11-06T19:36:06Z")

</div>

Hi,

I’m getting the following error:  
‘Sequential’ object has no attribute ‘stop’  
when trying to run the model.  
it fails on the callback when trying to early stop.

—\> 11 self.model.stop.training = True  
not sure what’s the issue.

---

<div class="post-metadata">

**Author:** ![nilosreesengupta](https://sea1.discourse-cdn.com/dlai/user_avatar/community.deeplearning.ai/nilosreesengupta/32/11457_2.png) [@nilosreesengupta](https://community.deeplearning.ai/u/nilosreesengupta)\
**Post date:** [November 6, 2022, 8:00pm UTC](https://community.deeplearning.ai/t/sequential-object-has-no-attribute-stop/227471/2 "2022-11-06T20:00:27Z")

</div>

Hello @Rafi_Lavi ,

It will not be self.model.stop.training = True.  
There will be underscore. It will be :  
` self.model.stop_training = True`

With regards,  
Nilosree Sengupta
