tensorflow:: ops:: PreventGradient

#include <array_ops.h>

グラデーションが要求された場合にエラーを発生させる同一性演算。

まとめ

グラフ内で実行される場合、この演算は入力テンソルをそのまま出力します。

勾配を計算する演算を作成する際、TensorFlowの勾配システムは、この演算の勾配を検索しようとするとエラーを返します。これは、この関数には勾配が登録されていない必要があるためです。この演算は、微妙なバグによって、特定の特殊なケースで未実装の勾配が暗黙のうちに返されるのを防ぐために存在します。

議論:

  • スコープ:スコープオブジェクト
  • 入力:任意のテンソル。

オプション属性( 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(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input input
)

勾配を防止する

 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
)