Link Search Menu Expand Document

SaveV2


tensorflow C++ API

tensorflow::ops::SaveV2

Saves tensors in V2 checkpoint format.


Summary

By default, saves the named tensors in full. If the caller wishes to save specific slices of full tensors, “shape_and_slices” should be non-empty strings and correspondingly well-formed.

Arguments:

  • scope: A Scope object
  • prefix: Must have a single element. The prefix of the V2 checkpoint to which we write the tensors.
  • tensor_names: shape {N}. The names of the tensors to be saved.
  • shape_and_slices: shape {N}. The slice specs of the tensors to be saved. Empty strings indicate that they are non-partitioned tensors.
  • tensors:Ntensors to save.

Returns:

  • the created Operation.

Constructor

  • SaveV2(const ::tensorflow::Scope & scope, ::tensorflow::Input prefix, ::tensorflow::Input tensor_names, ::tensorflow::Input shape_and_slices, ::tensorflow::InputList tensors).

Public attributes

  • tensorflow::Operation operation.

SaveV2 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 prefix: input prefix with path.
  • Input tensor_names: input tensor_names.
  • InputList tensors: connect InputList node.

Return:

  • Operation operation: Operation operation of SaveV2 class object.

Result:

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

Using Method