コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
テンソルフロー::手術
#include <ops.h>
計算グラフ内のノードを表します。
まとめ
公共機能
ハッシュ
uint64 hash(
int32 index
) const
DataType input_type(
int32 o
) const
出力数
int32 num_outputs() const
演算子==
bool operator==(
const Operation & other
) const
出力
Output output(
int32 i
) const
出力タイプ
DataType output_type(
int32 o
) const
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2025-07-26 UTC。
[null,null,["最終更新日 2025-07-26 UTC。"],[],[],null,["# tensorflow::Operation Class Reference\n\ntensorflow::Operation\n=====================\n\n`#include \u003cops.h\u003e`\n\nRepresents a node in the computation graph.\n\nSummary\n-------\n\n| ### Constructors and Destructors ||\n|---|---|\n| [Operation](#classtensorflow_1_1_operation_1affdd1229a28ca12d41c2016dc06bac9c)`()` ||\n| [Operation](#classtensorflow_1_1_operation_1a01d5e9099d2a89c48a0a2c18166bb61c)`(Node *n)` ||\n\n| ### Public functions ||\n|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------|\n| [hash](#classtensorflow_1_1_operation_1af7eb400d7e525015a6da3564136fb2da)`(int32 index) const ` | `uint64` |\n| [input](#classtensorflow_1_1_operation_1a9c93f80be1cee24c1f85b10dc69464fc)`(int32 i) const ` | [Output](/versions/r2.0/api_docs/cc/class/tensorflow/output#classtensorflow_1_1_output) |\n| [input_type](#classtensorflow_1_1_operation_1a1efce29997d6aa843fb4347386a7b842)`(int32 o) const ` | `DataType` |\n| [node](#classtensorflow_1_1_operation_1a0aaad0fb0775e40848f879780892c62a)`() const ` | `Node *` |\n| [num_inputs](#classtensorflow_1_1_operation_1a6ea6441affa16d05401440d30c157554)`() const ` | `int32` |\n| [num_outputs](#classtensorflow_1_1_operation_1a314711a8e16149c0ef823e1100a3a136)`() const ` | `int32` |\n| [operator==](#classtensorflow_1_1_operation_1a59f85b71ca828099976b3f183a37203f)`(const `[Operation](/versions/r2.0/api_docs/cc/class/tensorflow/operation#classtensorflow_1_1_operation)` & other) const ` | `bool` |\n| [output](#classtensorflow_1_1_operation_1a3e595ca82b9830a41d5d396b93c8f160)`(int32 i) const ` | [Output](/versions/r2.0/api_docs/cc/class/tensorflow/output#classtensorflow_1_1_output) |\n| [output_type](#classtensorflow_1_1_operation_1a17c38a7f7d7d899e387d25bcdf967d68)`(int32 o) const ` | `DataType` |\n\nPublic functions\n----------------\n\n### Operation\n\n```text\n Operation()\n``` \n\n### Operation\n\n```scdoc\n Operation(\n Node *n\n)\n``` \n\n### hash\n\n```gdscript\nuint64 hash(\n int32 index\n) const \n``` \n\n### input\n\n```gdscript\nOutput input(\n int32 i\n) const \n``` \n\n### input_type\n\n```gdscript\nDataType input_type(\n int32 o\n) const \n``` \n\n### node\n\n```gdscript\nNode * node() const \n``` \n\n### num_inputs\n\n```gdscript\nint32 num_inputs() const \n``` \n\n### num_outputs\n\n```gdscript\nint32 num_outputs() const \n``` \n\n### operator==\n\n```gdscript\nbool operator==(\n const Operation & other\n) const \n``` \n\n### output\n\n```gdscript\nOutput output(\n int32 i\n) const \n``` \n\n### output_type\n\n```gdscript\nDataType output_type(\n int32 o\n) const \n```"]]