tensorflow:: ops:: ConditionalAccumulator

#include <data_flow_ops.h>

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

まとめ

アキュムレータは、アキュムレータが認識する最新のグローバルステップ以上のローカルステップを持つ勾配を受け入れます。十分な勾配が蓄積されていれば、アキュムレータから平均値を抽出できます。平均値を抽出すると、アキュムレータは自動的に0にリセットされ、アキュムレータに記録されたグローバルステップが増加します。

議論:

  • スコープ:スコープオブジェクト
  • dtype: 蓄積される値の型。
  • shape: 値の形状。[] の場合、形状は不明です。

オプション属性( 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 

operator::tensorflow::Input

 operator::tensorflow::Input() const 

operator::tensorflow::Output

 operator::tensorflow::Output() const 

パブリック静的関数

容器

Attrs Container(
  StringPiece x
)

削減タイプ

Attrs ReductionType(
  StringPiece x
)

共有名

Attrs SharedName(
  StringPiece x
)