Spec-Zone.ru › TensorFlow C++

tensorflow::ops::Variable

#include <state_ops.h>

Содержит состояние в виде тензора, сохраняющееся между шагами.

Сводка

Выводит ссылку на состояние тензора, чтобы его можно было прочитать или изменить. TODO(zhifengc/mrry): Добавляет указатель на более подробный документ об общем использовании состояний в TensorFlow.

Аргументы:

  • scope: объект Scope
  • shape: форма тензора переменной.
  • dtype: тип элементов тензора переменной.

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

  • container: Если значение не пустое, эта переменная помещается в указанный контейнер. В противном случае используется контейнер по умолчанию.
  • shared_name: Если значение не пустое, этой переменной присваивается имя в указанной группе shared_name. В противном случае вместо него используется имя узла.

Возвращает:

  • Output: Ссылка на тензор переменной.
Конструкторы и деструкторы
Variable(const ::tensorflow::Scope & scope, PartialTensorShape shape, DataType dtype)
Variable(const ::tensorflow::Scope & scope, PartialTensorShape shape, DataType dtype, const Variable::Attrs & attrs)
Открытые атрибуты
operation
Operation
ref
::tensorflow::Output
Открытые функции
node() const
::tensorflow::Node *
operator::tensorflow::Input() const
operator::tensorflow::Output() const
Открытые статические функции
Container(StringPiece x)
Attrs
SharedName(StringPiece x)
Attrs
Структуры
tensorflow::ops::Variable::Attrs

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

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

operation

Operation operation

ref

::tensorflow::Output ref

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

Variable

 Variable(
  const ::tensorflow::Scope & scope,
  PartialTensorShape shape,
  DataType dtype
)

Variable

 Variable(
  const ::tensorflow::Scope & scope,
  PartialTensorShape shape,
  DataType dtype,
  const Variable::Attrs & attrs
)

node

::tensorflow::Node * node() const 

operator::tensorflow::Input

operator::tensorflow::Input() const 

operator::tensorflow::Output

operator::tensorflow::Output() const 

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

Container

Attrs Container(
  StringPiece x
)

SharedName

Attrs SharedName(
  StringPiece 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/variable

Spec-Zone.ru

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