Spec-Zone.ru › TensorFlow C++

tensorflow::ops::RestoreSlice

#include <io_ops.h>

Восстанавливает тензор из файлов контрольной точки.

Краткое описание

Это аналог Restore, за исключением того, что восстановленный тензор может быть указан как заполняющий только срез большего тензора. shape_and_slice задаёт форму большего тензора и срез, который занимает восстановленный тензор.

Входные данные shape_and_slice имеют тот же формат, что и элементы входных данных shapes_and_slices операции SaveSlices.

Аргументы:

  • scope: Объект Scope
  • file_pattern: Должен содержать один элемент. Шаблон файлов, из которых считывается тензор.
  • tensor_name: Должен содержать один элемент. Имя восстанавливаемого тензора.
  • shape_and_slice: Скаляр. Формы и спецификации срезов, используемые при восстановлении тензоров.
  • dt: Тип восстанавливаемого тензора.

Необязательные атрибуты (см. Attrs):

  • preferred_shard: Индекс файла, который следует открыть первым, если file_pattern соответствует нескольким файлам. См. документацию по Restore.

Возвращает:

  • Output: Восстановленный тензор.
Конструкторы и деструкторы
RestoreSlice(const ::tensorflow::Scope & scope, ::tensorflow::Input file_pattern, ::tensorflow::Input tensor_name, ::tensorflow::Input shape_and_slice, DataType dt)
RestoreSlice(const ::tensorflow::Scope & scope, ::tensorflow::Input file_pattern, ::tensorflow::Input tensor_name, ::tensorflow::Input shape_and_slice, DataType dt, const RestoreSlice::Attrs & attrs)
Открытые атрибуты
operation
Operation
tensor
::tensorflow::Output
Открытые функции
node() const
::tensorflow::Node *
operator::tensorflow::Input() const
operator::tensorflow::Output() const
Открытые статические функции
PreferredShard(int64 x)
Attrs
Структуры
tensorflow::ops::RestoreSlice::Attrs

Методы установки необязательных атрибутов для RestoreSlice.

Открытые атрибуты

operation

Operation operation

tensor

::tensorflow::Output tensor

Открытые функции

RestoreSlice

 RestoreSlice(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input file_pattern,
  ::tensorflow::Input tensor_name,
  ::tensorflow::Input shape_and_slice,
  DataType dt
)

RestoreSlice

 RestoreSlice(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input file_pattern,
  ::tensorflow::Input tensor_name,
  ::tensorflow::Input shape_and_slice,
  DataType dt,
  const RestoreSlice::Attrs & attrs
)

node

::tensorflow::Node * node() const 

operator::tensorflow::Input

operator::tensorflow::Input() const 

operator::tensorflow::Output

operator::tensorflow::Output() const 

Открытые статические функции

PreferredShard

Attrs PreferredShard(
  int64 x
)

© 2022 The TensorFlow Authors. All rights reserved.
Licensed under the Creative Commons Attribution License 4.0.
Code samples licensed under the Apache 2.0 License.
https://www.tensorflow.org/api_docs/cc/class/tensorflow/ops/restore-slice

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API