Stay organized with collections
Save and categorize content based on your preferences.
tensorflow::
ops::
Save
#include <io_ops.h>
Saves the input tensors to disk.
Summary
The size of
tensor_names
must match the number of tensors in
data
.
data[i]
is written to
filename
with name
tensor_names[i]
.
See also
SaveSlices
.
Args:
-
scope: A
Scope
object
-
filename: Must have a single element. The name of the file to which we write the tensor.
-
tensor_names: Shape
[N]
. The names of the tensors to be saved.
-
data:
N
tensors to save.
Returns:
Public attributes
Public functions
operator::tensorflow::Operation
operator::tensorflow::Operation() const
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates. Some content is licensed under the numpy license.
Last updated 2021-08-16 UTC.
[null,null,["Last updated 2021-08-16 UTC."],[],[],null,["# tensorflow::ops::Save Class Reference\n\ntensorflow::\nops::\nSave\n=======================\n\n`\n#include \u003cio_ops.h\u003e\n`\n\n\nSaves the input tensors to disk.\n\nSummary\n-------\n\n\nThe size of\n`\ntensor_names\n`\nmust match the number of tensors in\n`\ndata\n`\n.\n`\ndata[i]\n`\nis written to\n`\nfilename\n`\nwith name\n`\ntensor_names[i]\n`\n.\n\n\nSee also\n`\n`[SaveSlices](/versions/r2.6/api_docs/cc/class/tensorflow/ops/save-slices#classtensorflow_1_1ops_1_1_save_slices)`\n`\n.\n\n\nArgs:\n\n- scope: A [Scope](/versions/r2.6/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 [N]\n ` . The names of the tensors to be saved.\n- data: `\n N\n ` tensors to save.\n\n\u003cbr /\u003e\n\n\nReturns:\n\n- the created `\n `[Operation](/versions/r2.6/api_docs/cc/class/tensorflow/operation#classtensorflow_1_1_operation)`\n `\n\n\u003cbr /\u003e\n\n| ### Constructors and Destructors ||\n|---|---|\n| ` `[Save](#classtensorflow_1_1ops_1_1_save_1a64a5b93d315ac9308651354692ae8825)` (const :: `[tensorflow::Scope](/versions/r2.6/api_docs/cc/class/tensorflow/scope#classtensorflow_1_1_scope)` & scope, :: `[tensorflow::Input](/versions/r2.6/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input)` filename, :: `[tensorflow::Input](/versions/r2.6/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input)` tensor_names, :: `[tensorflow::InputList](/versions/r2.6/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.6/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```"]]