Spec-Zone.ru › TensorFlow C++ 2.3

tensorflow::ops::RestoreSlice

#include <io_ops.h>

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

Summary

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

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

Аргументы:

  • 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
)

© 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/r2.3/api_docs/cc/class/tensorflow/ops/restore-slice

Spec-Zone.ru

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