テンソルフロー::作戦::条件付きアキュムレータ

#include <data_flow_ops.h>

勾配を集約するための条件付きアキュムレータ。

まとめ

アキュムレータは、アキュムレータが認識している最新の global_step 以上の local_step でマークされた勾配を受け入れます。十分な勾配が蓄積されていれば、平均はアキュムレータから抽出できます。平均を抽出すると、集計は自動的に 0 にリセットされ、アキュムレータによって記録される global_step が増加します。

引数:

  • スコープ:スコープオブジェクト
  • dtype: 蓄積される値のタイプ。
  • 形状: 値の形状は [] にすることができますが、この場合形状は不明です。

オプションの属性 ( Attrsを参照):

  • コンテナ: 空でない場合、このアキュムレータは指定されたコンテナに配置されます。それ以外の場合は、デフォルトのコンテナが使用されます。
  • shared_name: 空でない場合、このアキュムレータは指定された名前で複数のセッション間で共有されます。

戻り値:

  • Output : アキュムレータへのハンドル。

コンストラクターとデストラクター

ConditionalAccumulator (const :: tensorflow::Scope & scope, DataType dtype, PartialTensorShape shape)
ConditionalAccumulator (const :: tensorflow::Scope & scope, DataType dtype, PartialTensorShape shape, const ConditionalAccumulator::Attrs & attrs)

パブリック属性

handle
operation

公共機能

node () const
::tensorflow::Node *
operator::tensorflow::Input () const
operator::tensorflow::Output () const

パブリック静的関数

Container (StringPiece x)
ReductionType (StringPiece x)
SharedName (StringPiece x)

構造体

tensorflow:: ops:: ConditionalAccumulator:: Attrs

ConditionalAccumulatorのオプションの属性セッター。

パブリック属性

ハンドル

::tensorflow::Output handle

手術

Operation operation

公共機能

条件付きアキュムレータ

 ConditionalAccumulator(
  const ::tensorflow::Scope & scope,
  DataType dtype,
  PartialTensorShape shape
)

条件付きアキュムレータ

 ConditionalAccumulator(
  const ::tensorflow::Scope & scope,
  DataType dtype,
  PartialTensorShape shape,
  const ConditionalAccumulator::Attrs & attrs
)

ノード

::tensorflow::Node * node() const 

演算子::tensorflow::入力

 operator::tensorflow::Input() const 

演算子::tensorflow::出力

 operator::tensorflow::Output() const 

パブリック静的関数

容器

Attrs Container(
  StringPiece x
)

リダクションタイプ

Attrs ReductionType(
  StringPiece x
)

共有名

Attrs SharedName(
  StringPiece x
)