Save


tensorflow C++ API

tensorflow::ops::Save

Saves the input tensors to disk.


Summary

The size of tensor_namesmust match the number of tensors indata.data[i]is written tofilenamewith name tensor_names[i].

See alsoSaveSlices.

Arguments:

  • 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: Ntensors to save.

Returns:

  • the created Operation.

Constructor

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

Public attributes

  • tensorflow::Operation operation.

Save block

Source link : https://github.com/EXPNUNI/enuSpaceTensorflow/blob/master/enuSpaceTensorflow/tf_i_o__ops.cpp

Argument:

  • Scope scope : A Scope object (A scope is generated automatically each page. A scope is not connected.)
  • Input filename : input filename with path.
  • Input tensor_names: input tensor_names.
  • InputList data : connect InputList node.

Return:

  • Operation operation: Operation operation of Save class object.

Result:

  • std::vector(Tensor) product_result : Returned object of executed result by calling session.

Using Method

results matching ""

    No results matching ""