Sử dụng bộ sưu tập để sắp xếp ngăn nắp các trang
Lưu và phân loại nội dung dựa trên lựa chọn ưu tiên của bạn.
dòng chảy căng:: Hoạt động
#include <ops.h>
Đại diện cho một nút trong biểu đồ tính toán.
Bản tóm tắt
Chức năng công cộng
Hoạt động
Operation(
Node *n
)
hàm băm
uint64 hash(
int32 index
) const
DataType input_type(
int32 o
) const
num_outputs
int32 num_outputs() const
toán tử==
bool operator==(
const Operation & other
) const
đầu ra
Output output(
int32 i
) const
đầu ra_type
DataType output_type(
int32 o
) const
Trừ phi có lưu ý khác, nội dung của trang này được cấp phép theo Giấy phép ghi nhận tác giả 4.0 của Creative Commons và các mẫu mã lập trình được cấp phép theo Giấy phép Apache 2.0. Để biết thông tin chi tiết, vui lòng tham khảo Chính sách trang web của Google Developers. Java là nhãn hiệu đã đăng ký của Oracle và/hoặc các đơn vị liên kết với Oracle.
Cập nhật lần gần đây nhất: 2025-07-26 UTC.
[null,null,["Cập nhật lần gần đây nhất: 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```"]]