tf.raw_ops.Save
bookmark_borderbookmark
Stay organized with collections
Save and categorize content based on your preferences.
Saves the input tensors to disk.
View aliases
Compat aliases for migration
See
Migration guide for
more details.
tf.compat.v1.raw_ops.Save
tf.raw_ops.Save(
filename, tensor_names, data, name=None
)
Used in the notebooks
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 |
filename
|
A Tensor of type string .
Must have a single element. The name of the file to which we write
the tensor.
|
tensor_names
|
A Tensor of type string .
Shape [N] . The names of the tensors to be saved.
|
data
|
A list of Tensor objects. N tensors to save.
|
name
|
A name for the operation (optional).
|
Returns |
The created Operation.
|
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 2024-04-26 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-04-26 UTC."],[],[],null,["# tf.raw_ops.Save\n\n\u003cbr /\u003e\n\nSaves the input tensors to disk.\n\n#### View aliases\n\n\n**Compat aliases for migration**\n\nSee\n[Migration guide](https://www.tensorflow.org/guide/migrate) for\nmore details.\n\n[`tf.compat.v1.raw_ops.Save`](https://www.tensorflow.org/api_docs/python/tf/raw_ops/Save)\n\n\u003cbr /\u003e\n\n tf.raw_ops.Save(\n filename, tensor_names, data, name=None\n )\n\n### Used in the notebooks\n\n| Used in the tutorials |\n|-------------------------------------------------------------------------------------------------------------------|\n| - [On-Device Training with TensorFlow Lite](https://www.tensorflow.org/lite/examples/on_device_training/overview) |\n\nThe size of `tensor_names` must match the number of tensors in `data`. `data[i]`\nis written to `filename` with name `tensor_names[i]`.\n\nSee also `SaveSlices`.\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Args ---- ||\n|----------------|-------------------------------------------------------------------------------------------------------------|\n| `filename` | A `Tensor` of type `string`. Must have a single element. The name of the file to which we write the tensor. |\n| `tensor_names` | A `Tensor` of type `string`. Shape `[N]`. The names of the tensors to be saved. |\n| `data` | A list of `Tensor` objects. `N` tensors to save. |\n| `name` | A name for the operation (optional). |\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Returns ------- ||\n|---|---|\n| The created Operation. ||\n\n\u003cbr /\u003e"]]