# During train stage of Lab2, it frequently required to restart kernel

**URL:** <https://community.deeplearning.ai/t/during-train-stage-of-lab2-it-frequently-required-to-restart-kernel/455650>\
**Category:** AI Discussions\
**Created:** [September 26, 2023, 1:11pm UTC](https://community.deeplearning.ai/t/during-train-stage-of-lab2-it-frequently-required-to-restart-kernel/455650 "2023-09-26T13:11:32Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![yigang\_zheng](https://avatars.discourse-cdn.com/v4/letter/y/2bfe46/32.png) [@yigang\_zheng](https://community.deeplearning.ai/u/yigang_zheng)\
**Post date:** [September 26, 2023, 1:11pm UTC](https://community.deeplearning.ai/t/during-train-stage-of-lab2-it-frequently-required-to-restart-kernel/455650/1 "2023-09-26T13:11:32Z")

</div>

during train stage of Lab2, always be required to ‘restart kernel’, and this caused the earlier finished steps be required to run again, and when redo some steps, be required to restart kernel again, and loop and loop, how can fix this?

---

<div class="post-metadata">

**Author:** ![elirod](https://sea1.discourse-cdn.com/dlai/user_avatar/community.deeplearning.ai/elirod/32/55842_2.png) [@elirod](https://community.deeplearning.ai/u/elirod)\
**Post date:** [September 26, 2023, 1:18pm UTC](https://community.deeplearning.ai/t/during-train-stage-of-lab2-it-frequently-required-to-restart-kernel/455650/2 "2023-09-26T13:18:21Z")

</div>

Hi @yigang_zheng

Welcome to the community.

You ended up posting your query in the general category.

What course are you referring to?

Don’t forget to check our [Guidelines](https://sites.google.com/deeplearning.ai/deeplearningaifaq/community/messages-notifications?authuser=0) before posting.

Best regards

---

<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:** [September 26, 2023, 5:35pm UTC](https://community.deeplearning.ai/t/during-train-stage-of-lab2-it-frequently-required-to-restart-kernel/455650/3 "2023-09-26T17:35:33Z")

</div>

In addition to Mentor @elirod reply; maybe your code is making the kernel crash?
