JA: add ja/r2/guide/eager.ipynb#752
Conversation
|
Preview and run these notebook edits with Google Colab: Notebook diffs available on ReviewNB.com. |
|
Reviewers added, please take a look. When your review is finished, approve the pull request or include "LGTM" in your comment. |
lamberta
left a comment
There was a problem hiding this comment.
Thanks.
Please move this into the site/ja/beta/guide directory.
Also, update the buttons to match
|
Added commits to update path and fix notebook. Switched to GPU to train faster (#780) Will keep this pull request open to allow time for translation reviews. |
| "source": [ | ||
| "\n", | ||
| "\n", | ||
| "Tensorflow の Eager Execution は、計算グラフの作成と評価を同時におこなう命令的なプログラミングを行うための環境です:\n", |
| "* *より簡単なデバッグ*— ops を直接呼び出すことで、実行中のモデルを調査したり、変更をテストすることができます。 Python 標準のデバッグツールを用いて即座にエラーのレポーティングができます。\n", | ||
| "* *自然な制御フロー*— TensorFlow のグラフ制御フローの代わりに Python の制御フローを利用するため、動的なモデルのパラメータ変更をシンプルに行うことができます。\n", | ||
| " \n", | ||
| "Eager Execution は Tensorflow のほとんどのオペレーションとGPUアクセラレーションをサポートします。\n", |
| "\n", | ||
| "Eager Execution は研究や実験のための柔軟な機械学習環境として、以下を提供します。\n", | ||
| "\n", | ||
| "* *直感的なインタフェース*— Python のデータ構造を使用して、コードをナチュラルに記述することができます。スモールなモデルとデータに対してすばやく実験を繰り返すことができます。\n", |
There was a problem hiding this comment.
[weak suggestion]
ナチュラルに ==> 自然に
スモールな ==> 小規模な
| "\n", | ||
| "* *直感的なインタフェース*— Python のデータ構造を使用して、コードをナチュラルに記述することができます。スモールなモデルとデータに対してすばやく実験を繰り返すことができます。\n", | ||
| "* *より簡単なデバッグ*— ops を直接呼び出すことで、実行中のモデルを調査したり、変更をテストすることができます。 Python 標準のデバッグツールを用いて即座にエラーのレポーティングができます。\n", | ||
| "* *自然な制御フロー*— TensorFlow のグラフ制御フローの代わりに Python の制御フローを利用するため、動的なモデルのパラメータ変更をシンプルに行うことができます。\n", |
There was a problem hiding this comment.
[discussion]
制御フロー or control flow
Control flow is a technical term for TensorFlow:
https://www.tensorflow.org/api_docs/cc/group/control-flow-ops
So, I think we don't need to translate it.
But 制御フロー is good and natural translation, so I can not tell which is better.
How is your opinion?
There was a problem hiding this comment.
[suggestion]
動的なモデルのパラメータ変更 ==> 動的なモデルの作成
There was a problem hiding this comment.
制御フロー or control flow
I'd like "制御フロー" because Chinese documents translate it.
And in the another part of documents such as autograph uses "制御フロー", too..
There was a problem hiding this comment.
動的なモデルのパラメータ変更 ==> 動的なモデルの作成
specification's direct translation isn't "作成", but it's natural. So I use your suggestion.
| "Eager Execution を有効化することで、 TensorFlow の挙動は変わります—TensorFlowは即座に式を評価して結果をPythonに返すようになります。\n", | ||
| "`tf.Tensor` オブジェクトは計算グラフのノードへのシンボリックハンドルの代わりに具体的な値を参照します。\n", | ||
| "セッションの中で構築して実行する計算グラフが存在しないため、`print()`やデバッガを使って容易に結果を調べることができます。\n", | ||
| "勾配計算を終了することなくテンソル値を評価、出力、およびチェックすることができます。\n", |
There was a problem hiding this comment.
[suggestion]
I think 終了することなく ==> 遮ることなく is more natural translation.
| "source": [ | ||
| "## Eager Execution の途中でオブジェクトのステータスを使用する\n", | ||
| "\n", | ||
| "TF 1.x の Graph Execution では、プログラムの状態(変数など)は global collection に格納され、それらの存続期間は `tf.Session` オブジェクトによって管理されます。\n", |
There was a problem hiding this comment.
I commented about Variable above.
There was a problem hiding this comment.
Variable and queue are only objects which have "state" (that is, mutabule in session) in TF v1.
They refer to it here.
So, I guess it's better to distinguish Variable (a technical term for TensorFlow) and 変数 (a technical term for general programming or mathematical optimization) explicitly.
There was a problem hiding this comment.
the original document in English uses (such as the variables).
variables in this case use lowercase, so I doubt if we should translate or use handle as tf.Variable.
I translated it as (Variableなど).(used capital V)
| "id": "xEL4yJe5qEhD" | ||
| }, | ||
| "source": [ | ||
| "## 高度な自動分類トピック\n", |
| "### カスタム勾配\n", | ||
| "\n", | ||
| "カスタム勾配は、勾配を上書きする簡単な方法です。 フォワード関数では、\n", | ||
| "入力、出力、または中間結果に関する勾配を定義します。たとえば、逆方向パスにおいて勾配のノルムを切り取る簡単な方法は次のとおりです:" |
There was a problem hiding this comment.
[weak suggestion]
I guess it's more natural to translate clip to 制限する or 固定する (not 切り取る)
| "colab": {} | ||
| }, | ||
| "source": [ | ||
| "# 購買計算は x = 0 のときはうまくいく。\n", |
| "Eager Execution は開発とデバッグをより対話的にしますが、\n", | ||
| "TensorFlow 1.x スタイルの Graph Execution は分散学習、パフォーマンスの最適化、そしてプロダクション環境へのデプロイの観点で利点があります。\n", | ||
| "\n", | ||
| "2つの手法のギャップを埋めるために、 TensorFlow 2.0 は `tf.function` API に似た `function` を紹介します。\n", |
There was a problem hiding this comment.
[suggestion]
TensorFlow 2.0 は `tf.function` API に似た `function` を紹介します。
==>
TensorFlow 2.0 では `tf.function` という機能を導入しています。
|
Hi @chie8842, can you please apply the reviewer suggestions and then I can merge this pull request. Thank you |
|
Closing this pull requests because of inactivity. Feel free to apply the reviewer suggestions and re-open when ready. Thanks |
No description provided.