第2章準備
2.5.5. Discussion2.5.5 考察
You have now gotten a taste of the power of automatic differentiation. The development of libraries for calculating derivatives both automatically and efficiently has been a massive productivity booster for deep learning practitioners, liberating them so they can focus on less menial. Moreover, autograd lets us design massive models for which pen and paper gradient computations would be prohibitively time consuming. Interestingly, while we use autograd to optimize models (in a statistical sense) the optimization of autograd libraries themselves (in a computational sense) is a rich subject of vital interest to framework designers. Here, tools from compilers and graph manipulation are leveraged to compute results in the most expedient and memory-efficient manner.
英語のヒント
これで自動微分の威力を味わえたはずである。導関数を自動的かつ効率よく計算するライブラリの開発は、深層学習の実践者の生産性を大きく押し上げ、彼らを解放して、より単調でない仕事に集中できるようにした。さらにautogradのおかげで、紙と鉛筆での勾配計算では途方もない時間がかかるような巨大なモデルを設計できる。おもしろいことに、私たちは(統計的な意味で)モデルを最適化するためにautogradを使うが、autogradのライブラリそのものの(計算上の意味での)最適化は、フレームワークの設計者にとって極めて重要な、豊かな主題である。ここでは、コンパイラやグラフ操作の道具を活用して、最も手早くメモリ効率のよい方法で結果を計算する。
For now, try to remember these basics: (i) attach gradients to those variables with respect to which we desire derivatives; (ii) record the computation of the target value; (iii) execute the backpropagation function; and (iv) access the resulting gradient.
英語のヒント
今は、次の基本を覚えておこう。(i)導関数がほしい変数に勾配を付ける。(ii)目標値の計算を記録する。(iii)誤差逆伝播の関数を実行する。(iv)得られた勾配を取り出す。