# 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 `https://www.tensorflow.org/versions/r2.1/api_docs/cc/class/tensorflow/ops/save-slices#classtensorflow_1_1ops_1_1_save_slices`.

Arguments:

- scope: A [Scope](https://www.tensorflow.org/versions/r2.1/api_docs/cc/class/tensorflow/scope#classtensorflow_1_1_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.

<br />

Returns:

- the created `https://www.tensorflow.org/versions/r2.1/api_docs/cc/class/tensorflow/operation#classtensorflow_1_1_operation`

<br />

| ### Constructors and Destructors ||
|---|---|
| `https://www.tensorflow.org/versions/r2.1/api_docs/cc/class/tensorflow/ops/save#classtensorflow_1_1ops_1_1_save_1a64a5b93d315ac9308651354692ae8825(const ::https://www.tensorflow.org/versions/r2.1/api_docs/cc/class/tensorflow/scope#classtensorflow_1_1_scope & scope, ::https://www.tensorflow.org/versions/r2.1/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input filename, ::https://www.tensorflow.org/versions/r2.1/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input tensor_names, ::https://www.tensorflow.org/versions/r2.1/api_docs/cc/class/tensorflow/input-list#classtensorflow_1_1_input_list data)` ||

| ### Public attributes ||
|---|---|
| `https://www.tensorflow.org/versions/r2.1/api_docs/cc/class/tensorflow/ops/save#classtensorflow_1_1ops_1_1_save_1a260f7c4261ccc370e0d48726e9c017a9` | `https://www.tensorflow.org/versions/r2.1/api_docs/cc/class/tensorflow/operation#classtensorflow_1_1_operation` |

| ### Public functions ||
|---|---|
| `https://www.tensorflow.org/versions/r2.1/api_docs/cc/class/tensorflow/ops/save#classtensorflow_1_1ops_1_1_save_1ab957aaf2009c689e9bb7432c7194cd1e() const ` | ` `` ` |

## Public attributes

### operation

```
Operation operation
```

## Public functions

### Save

```
 Save(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input filename,
  ::tensorflow::Input tensor_names,
  ::tensorflow::InputList data
)
```

### operator::tensorflow::Operation

```
 operator::tensorflow::Operation() const 
```