W3cubDocs

/TensorFlow C++ 1.15

tensorflow::ops::SaveV2

#include <io_ops.h>

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: N tensors to save.

Returns:

Constructors and Destructors
SaveV2(const ::tensorflow::Scope & scope, ::tensorflow::Input prefix, ::tensorflow::Input tensor_names, ::tensorflow::Input shape_and_slices, ::tensorflow::InputList tensors)
Public attributes
operation
Public functions
operator::tensorflow::Operation() const

Public attributes

operation

Operation operation

Public functions

SaveV2

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

operator::tensorflow::Operation

operator::tensorflow::Operation() const 

© 2020 The TensorFlow Authors. All rights reserved.
Licensed under the Creative Commons Attribution License 3.0.
Code samples licensed under the Apache 2.0 License.
https://www.tensorflow.org/versions/r1.15/api_docs/cc/class/tensorflow/ops/save-v2