tensorflow:: אופס:: לְהַצִיל
#include <io_ops.h>
שומר את טנסור הקלט בדיסק.
תַקצִיר
הגודל של tensor_names
חייב להתאים למספר הטנזורים data
. data[i]
נכתב לשם filename
עם שם tensor_names[i]
.
ראה גם SaveSlices
.
טיעונים:
- scope: אובייקט Scope
- שם קובץ: חייב להיות רכיב בודד. שם הקובץ שאליו אנו כותבים את הטנזור.
- tensor_names: צורה
[N]
. שמות הטנזורים שיש לשמור. - נתונים:
N
טנסורים לשמירה.
החזרות:
-
Operation
שנוצר
בנאים והורסים | |
---|---|
Save (const :: tensorflow::Scope & scope, :: tensorflow::Input filename, :: tensorflow::Input tensor_names, :: tensorflow::InputList data) |
תכונות ציבוריות | |
---|---|
operation |
תפקידים ציבוריים | |
---|---|
operator::tensorflow::Operation () const |
תכונות ציבוריות
מִבצָע
Operation operation
תפקידים ציבוריים
לְהַצִיל
Save( const ::tensorflow::Scope & scope, ::tensorflow::Input filename, ::tensorflow::Input tensor_names, ::tensorflow::InputList data )
אופרטור::tensorflow::פעולה
operator::tensorflow::Operation() const
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 4.0 ודוגמאות הקוד הן ברישיון Apache 2.0. לפרטים, ניתן לעיין במדיניות האתר Google Developers. Java הוא סימן מסחרי רשום של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2025-07-26 (שעון UTC).
[null,null,["עדכון אחרון: 2025-07-26 (שעון UTC)."],[],[],null,["# tensorflow::ops::Save Class Reference\n\ntensorflow::ops::Save\n=====================\n\n`#include \u003cio_ops.h\u003e`\n\nSaves the input tensors to disk.\n\nSummary\n-------\n\nThe size of `tensor_names` must match the number of tensors in `data`. `data[i]` is written to `filename` with name `tensor_names[i]`.\n\nSee also [SaveSlices](/versions/r2.0/api_docs/cc/class/tensorflow/ops/save-slices#classtensorflow_1_1ops_1_1_save_slices).\n\nArguments:\n\n- scope: A [Scope](/versions/r2.0/api_docs/cc/class/tensorflow/scope#classtensorflow_1_1_scope) object\n- filename: Must have a single element. The name of the file to which we write the tensor.\n- tensor_names: Shape `[N]`. The names of the tensors to be saved.\n- data: `N` tensors to save.\n\n\u003cbr /\u003e\n\nReturns:\n\n- the created [Operation](/versions/r2.0/api_docs/cc/class/tensorflow/operation#classtensorflow_1_1_operation)\n\n\u003cbr /\u003e\n\n| ### Constructors and Destructors ||\n|---|---|\n| [Save](#classtensorflow_1_1ops_1_1_save_1a64a5b93d315ac9308651354692ae8825)`(const ::`[tensorflow::Scope](/versions/r2.0/api_docs/cc/class/tensorflow/scope#classtensorflow_1_1_scope)` & scope, ::`[tensorflow::Input](/versions/r2.0/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input)` filename, ::`[tensorflow::Input](/versions/r2.0/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input)` tensor_names, ::`[tensorflow::InputList](/versions/r2.0/api_docs/cc/class/tensorflow/input-list#classtensorflow_1_1_input_list)` data)` ||\n\n| ### Public attributes ||\n|----------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------|\n| [operation](#classtensorflow_1_1ops_1_1_save_1a260f7c4261ccc370e0d48726e9c017a9) | [Operation](/versions/r2.0/api_docs/cc/class/tensorflow/operation#classtensorflow_1_1_operation) |\n\n| ### Public functions ||\n|-------------------------------------------------------------------------------------------------------------------|---------|\n| [operator::tensorflow::Operation](#classtensorflow_1_1ops_1_1_save_1ab957aaf2009c689e9bb7432c7194cd1e)`() const ` | ` ` ` ` |\n\nPublic attributes\n-----------------\n\n### operation\n\n```text\nOperation operation\n``` \n\nPublic functions\n----------------\n\n### Save\n\n```gdscript\n Save(\n const ::tensorflow::Scope & scope,\n ::tensorflow::Input filename,\n ::tensorflow::Input tensor_names,\n ::tensorflow::InputList data\n)\n``` \n\n### operator::tensorflow::Operation\n\n```gdscript\n operator::tensorflow::Operation() const \n```"]]