Pytorch

Pytorch #3

下記の記事を試したところ・・・ aidiary.hatenablog.com img = Image.open('20180212105211.png')img ここで、エラーになった。 !pip install Pillow==4.0.0!pip install PIL!pip install image これで解決した。

Pytorch #2

下記の記事を試そうと思ったが、家のパソコンにはGPUがないのであきらめていた。 aidiary.hatenablog.com が、こんなのがあった。無料でGPUが使えるらしい。 https://colab.research.google.com/notebooks/welcome.ipynb 早速試してみたら epoch 0, loss: 1.…

Pytorch

下記の記事を試してみた。 2つめのBoston house price datasetで以下のエラーが出た。 Pytorchのバージョンは、0.4.1 RuntimeError: input and target shapes do not match: input [339 x 1], target [339] at c:\programdata\miniconda3\conda-bld\pytorch-…