LoginSignup
1
2

More than 1 year has passed since last update.

ChainerからPyTorchへ移行するためのサンプルコード

Last updated at Posted at 2020-06-09

ChainerからPyTorchへ移行する手順を理解するために、サンプルコードを作成し、githubにアップロードしました。

PyTorch-Chainer-combination
https://github.com/take0212/pytorch-chainer-combination

理解する上で、PyTorch / Chainer modelをPyTorch / Chainer trainerで学習するコードをそれぞれ記載しました。

1.PyTorch modelをPyTorch trainerで学習する(normal)
2.Chainer modelをPyTorch trainerで学習する(combination)
3.Chainer modelをChainer trainerで学習する(normal)
4.PyTorch modelをChainer trainerで学習する(combination)

サンプルコード作成においては、Emcastilloさん(Preferred Networks)に多々アドバイスいただきました。
大変ありがとうございました。

参照

chainer-pytorch-migration
https://preferred.jp/ja/news/pr20191205/
https://chainer.github.io/migration-guide/
https://github.com/chainer/chainer-pytorch-migration

https://qiita.com/keisuke-umezawa/items/35baf525794ee89875e1
https://qiita.com/maskot1977/items/cee6aafb59342af8630c
https://qiita.com/Hiroshiba/items/c3b9f4f9dab52c2cb3d0
https://qiita.com/take0212/items/2aa27aa08324500c5b08

pytorch-pfn-extras
https://preferred.jp/ja/news/pr20200512/
https://github.com/pfnet/pytorch-pfn-extras

1
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
2