Google Colab 在单元执行期间不显示输出

发布于 2025-01-11 06:52:43 字数 304 浏览 0 评论 0原文

我一直在研究图像分类算法,由于本地机器内存不足,不得不转移到 Colab。有一个单元负责训练,并且在训练函数内部有一些打印语句,这些语句应该让我了解过程的进展情况 - 这些语句在单元执行期间永远不会给我输出。更有趣的是,我将通常的“hello”打印语句放在单元格的最开头,但它也没有出现 - 我已经等了几个小时才显示它,没有结果。我在 Microsoft Azure ML 环境中尝试了相同的代码,它运行得很好(输出存在)。造成此类问题的原因可能是什么?下面附有图片。谢谢!

1

I have been working on an image classifying algorithm and due to insufficient memory on a local machine, had to move to Colab. There is a cell which is responsible for training and inside the training function there are print statements which are supposed to keep me informed on how the process goes - these are never giving me the output during the cell's execution. What is more interesting, I have put the usual "hello" print statement at the very beginning of the cell and it is not appearing as well - I have waited hours for it to show up, no result. I tried the same code at the Microsoft Azure ML environment and it works perfectly fine (output is present). What might be the cause of such an issue? Image attached below. Thanks!

1

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文