Spec-Zone.ru › TensorFlow C++ 2.3

tensorflow::ops::Variable

#include <state_ops.h>

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

Summary

Выводит ссылку на состояние тензора, чтобы его можно было прочитать или изменить. 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
)

© 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/variable

Spec-Zone.ru

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