{"published":"2022-06-06 09:00:00","image_url":null,"url":"https://inarizuuuushi.hatenablog.com/entry/2022/06/06/090000","blog_title":"Sabrou-mal \u30b5\u30d6\u30ed\u30a6\u4e38","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Finarizuuuushi.hatenablog.com%2Fentry%2F2022%2F06%2F06%2F090000\" title=\"python, warning \u30c7\u30d0\u30c3\u30b0 - Sabrou-mal \u30b5\u30d6\u30ed\u30a6\u4e38\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","author_url":"https://blog.hatena.ne.jp/inarizuuuushi/","provider_url":"https://hatena.blog","title":"python, warning \u30c7\u30d0\u30c3\u30b0","version":"1.0","blog_url":"https://inarizuuuushi.hatenablog.com/","author_name":"inarizuuuushi","categories":["python"],"provider_name":"Hatena Blog","width":"100%","height":"190","description":"python\u3067warning\u3092\u30c7\u30d0\u30c3\u30b0\u3059\u308b\u969b\u306bpdb\u306e\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u30c7\u30d0\u30c3\u30ac\u3067catch\u3057\u3066\u304f\u308c\u308b\u3068\u3001\u3068\u3066\u3082\u4fbf\u5229\u3067\u3059\u3088\u306d\u3002 \u4f8b\u3048\u3070\u4e0b\u8a18\u306e\u30b3\u30fc\u30c9\u3092\u5b9f\u884c\u3059\u308b\u3068 import numpy as np x = np.ones((2, 2), dtype=np.float16) x[0, 0] = 1e4 y = x ** 2 $ python tmp.py /Users/tateiwa/nlp/src/tmp.py:5: RuntimeWarning: overflow encountered in square y = x ** 2 \u3068\u3044\u3046warning\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u3002 (\u672c\u7b4b\u3067\u306f\u306a\u3044\u3067\u3059\u304c\u3001\u3053\u306e\u5834\u5408\u2026","type":"rich"}