tensorflow::ops::RestoreSlice
#include <io_ops.h>
Восстанавливает тензор из файлов контрольных точек.
Summary
Это похоже на 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 | |
tensor | |
| Общедоступные функции | |
|---|---|
node() const | ::tensorflow::Node * |
operator::tensorflow::Input() const | |
operator::tensorflow::Output() const | |
| Общедоступные статические функции | |
|---|---|
PreferredShard(int64 x) | |
| Структуры | |
|---|---|
| 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