Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
当我尝试使用 matplotlib plot 绘制数据时,我的 colab 内核因未知原因重新启动(在此之前,我已经成功绘制了相同数据的直方图)。colab 给出了检查运行时日志的通知,具体如下。我看不出发生这种情况的任何明显原因。
我刚刚发现为什么会这样。在运行最后一个单元时,colab 运行时 RAM 被完全消耗。它发生在我使用 matplotlib 图时,但当我使用 matplotlib 直方图时,结果很好。当您具有高精度浮点值时,直方图可能更轻。我在两种方法之间重复了多次试验,每次都得到相同的结果。