最先端技術即席実装(SSJ)

最先端技術即席実装(SSJ)

いかに時間をかけないで、最新技術を使いこなすかを目標にした活動記録

PyTorchとは? | TensorFlowはもう古い?! PyTorchで始めるディープラーニング

年末年始引きこもって習得したTensorFlowですが

tetsuyaimagawa.hatenablog.com

 

どうやらTensorflowは2016年で終わっていたようです…

 

2017年はPyTorch… 

Tweetを読み込むと、2017に来るのはPyTorchとのこと。

TensorFlowよりもChainerに近いというPyTorch、違いはグラフにある模様…

TensorFlow doesn’t handle dynamic graphs very well though there are some not so flexible and frankly quite limiting primitive dynamic constructs.

 TensorFlowは動的なグラフをうまく扱えない…(PyTorchは扱いやすい)

How is PyTorch different from Tensorflow? – Hacker Noon

 

 

実際にためしてみた 

早速使ってみましょう。

公式サイトのGet Startedが親切過ぎて、一瞬でインストールできます。

 

サンプルも落として実行するだけで瞬殺です。

github.com

 

例によってMNISTを試してみます。

f:id:tetsuyaimagawa:20170209194225p:plain

TensorFlowのときと比べると圧倒的に素早く起動確認できました。