tensorflow:: ops:: QueueDequeueUpTo
#include <data_flow_ops.h>指定されたキューから、1つ以上のテンソルからなるn個のタプルを取り出します。
まとめ
この操作はすべてのキューでサポートされているわけではありません。キューが DequeueUpTo をサポートしていない場合、未実装エラーが返されます。
キューが閉じられていて、残りの要素が 0 より多くnより少ない場合、 QueueDequeueManyのように OutOfRange エラーを返す代わりに、 nより少ない要素がすぐに返されます。キューが閉じられていて、キューに残っている要素が 0 の場合は、 QueueDequeueManyと同様に OutOfRange エラーが返されます。それ以外の場合は、 QueueDequeueManyと同じ動作になります。
この操作では、キュー要素のコンポーネントテンソルを0次元に沿って連結し、単一のコンポーネントテンソルを作成します。デキューされたタプル内のすべてのコンポーネントは、0次元においてサイズnを持ちます。
この操作にはk個の出力があり、 kは指定されたキューに格納されているタプルのコンポーネントの数であり、出力iはキューから取り出されたタプルの i 番目のコンポーネントです。
議論:
- スコープ:スコープオブジェクト
- handle: キューへのハンドル。
- n: デキューするタプルの数。
- component_types: タプル内の各コンポーネントのタイプ。
オプション属性( Attrs参照):
- timeout_ms: キューの要素数がn未満の場合、この操作は最大timeout_msミリ秒間ブロックされます。注: このオプションはまだサポートされていません。
返品:
-
OutputList:タプルとしてデキューされた1つ以上のテンソル。
コンストラクターとデストラクタ | |
|---|---|
QueueDequeueUpTo (const :: tensorflow::Scope & scope, :: tensorflow::Input handle, :: tensorflow::Input n, const DataTypeSlice & component_types) | |
QueueDequeueUpTo (const :: tensorflow::Scope & scope, :: tensorflow::Input handle, :: tensorflow::Input n, const DataTypeSlice & component_types, const QueueDequeueUpTo::Attrs & attrs) |
公開属性 | |
|---|---|
components | |
operation | |
公的機能 | |
|---|---|
operator[] (size_t index) const | |
パブリック静的関数 | |
|---|---|
TimeoutMs (int64 x) | |
構造 | |
|---|---|
| tensorflow:: ops:: QueueDequeueUpTo:: Attrs | QueueDequeueUpToのオプション属性セッター。 |
公開属性
コンポーネント
::tensorflow::OutputList components
手術
Operation operation
公的機能
キューからキューまで
QueueDequeueUpTo( const ::tensorflow::Scope & scope, ::tensorflow::Input handle, ::tensorflow::Input n, const DataTypeSlice & component_types )
キューからキューまで
QueueDequeueUpTo( const ::tensorflow::Scope & scope, ::tensorflow::Input handle, ::tensorflow::Input n, const DataTypeSlice & component_types, const QueueDequeueUpTo::Attrs & attrs )
オペレーター[]
::tensorflow::Output operator[]( size_t index ) const
パブリック静的関数
タイムアウトMs
Attrs TimeoutMs( int64 x )