tensorflow :: ops :: PreventGradient
#include <array_ops.h>
勾配が要求された場合にエラーをトリガーするID操作。
概要
グラフで実行すると、この演算は入力テンソルをそのまま出力します。
勾配を計算するためのopsを構築する場合、この関数に勾配を登録する必要がないため、TensorFlow勾配システムはこのopの勾配を検索しようとするとエラーを返します。この操作は、微妙なバグが一部のコーナーケースで実装されていないグラデーションをサイレントに返すのを防ぐために存在します。
引数:
- スコープ:スコープオブジェクト
- 入力:任意のテンソル。
オプションの属性(参照Attrs
):
- メッセージ:誰かがこの操作を区別しようとすると、エラーで出力されます。
戻り値:
-
Output
:同じ入力テンソル。
コンストラクタとデストラクタ | |
---|---|
PreventGradient (const :: tensorflow::Scope & scope, :: tensorflow::Input input) | |
PreventGradient (const :: tensorflow::Scope & scope, :: tensorflow::Input input, const PreventGradient::Attrs & attrs) |
パブリック属性 | |
---|---|
operation | |
output |
公の行事 | |
---|---|
node () const | ::tensorflow::Node * |
operator::tensorflow::Input () const | |
operator::tensorflow::Output () const |
パブリック静的関数 | |
---|---|
Message (StringPiece x) |
構造体 | |
---|---|
tensorflow :: ops :: PreventGradient :: Attrs | PreventGradientのオプションの属性セッター。 |
パブリック属性
操作
Operation operation
出力
::tensorflow::Output output
公の行事
PreventGradient
PreventGradient( const ::tensorflow::Scope & scope, ::tensorflow::Input input )
PreventGradient
PreventGradient( const ::tensorflow::Scope & scope, ::tensorflow::Input input, const PreventGradient::Attrs & attrs )
ノード
::tensorflow::Node * node() const
operator :: tensorflow :: Input
operator::tensorflow::Input() const
operator :: tensorflow :: Output
operator::tensorflow::Output() const
パブリック静的関数
メッセージ
Attrs Message( StringPiece x )