{"categories":["Python"],"type":"rich","width":"100%","provider_name":"Hatena Blog","blog_url":"https://kamakuraviel.hatenablog.com/","provider_url":"https://hatena.blog","author_url":"https://blog.hatena.ne.jp/kamakuraviel/","author_name":"kamakuraviel","blog_title":"\u79c1\u306e\u5099\u5fd8\u9332\u304c\u306a\u3044\u308f\u306d...\u79c1\u306e...","description":"\u6982\u8981 \u74b0\u5883 \u57fa\u672c\u7684\u306a\u6319\u52d5(CPU) \u30b9\u30b3\u30fc\u30d7\u306b\u95a2\u3059\u308bGC del\u306b\u3088\u308b\u30e1\u30e2\u30ea\u306e\u89e3\u653e \u30e1\u30e2\u30ea\u4f7f\u7528\u91cf\u306e\u5909\u5316 \u30b4\u30df\u306b\u5bfe\u3059\u308b\u6319\u52d5 \u30e1\u30e2\u30ea\u5236\u9650\u4e0b\u3067\u306e\u6319\u52d5 GPU\u4e0a\u3067\u306e\u6319\u52d5 \u7d50\u8ad6 \u53c2\u8003\u6587\u732e \u6982\u8981 Python\u3067\u306egarbage collection(GC)\u306b\u3064\u3044\u3066\u8abf\u3079\u3066\u307f\u305f\u3002\u901a\u5e38\u52d5\u4f5c\u306b\u52a0\u3048\u3066\u3001\u30e1\u30e2\u30ea\u5236\u9650\u4e0b\u3084GPU\u4e0a\u3067\u306e\u7279\u6b8a\u306a\u6319\u52d5\u306b\u3064\u3044\u3066\u3082\u898b\u3066\u307f\u305f\u3002 \u74b0\u5883 Ubuntu 16.04.6 LTS (Xenial Xerus) JupyterLab Python 3.7.6 pytorch 1.5.0 import\u3057\u305f\u30e9\u30a4\u30d6\u30e9\u30ea\u306f\u4ee5\u4e0b\u306e\u901a\u308a\u3067\u3042\u308b\u3002 import os import torch import G\u2026","image_url":null,"title":"Python\u306eGarbageCollection\u306b\u95a2\u3059\u308b\u8003\u5bdf","height":"190","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fkamakuraviel.hatenablog.com%2Fentry%2F2020%2F08%2F23%2F193446\" title=\"Python\u306eGarbageCollection\u306b\u95a2\u3059\u308b\u8003\u5bdf - \u79c1\u306e\u5099\u5fd8\u9332\u304c\u306a\u3044\u308f\u306d...\u79c1\u306e...\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","published":"2020-08-23 19:34:46","version":"1.0","url":"https://kamakuraviel.hatenablog.com/entry/2020/08/23/193446"}