tensorflow::ops::متغیر

#include <state_ops.h>

حالت را به شکل یک تانسور که در طول مراحل ثابت می‌ماند، نگه می‌دارد.

خلاصه

یک ارجاع به وضعیت تانسور خروجی می‌دهد تا بتوان آن را خواند یا تغییر داد. TODO(zhifengc/mrry): یک اشاره‌گر به سندی با جزئیات بیشتر در مورد اشتراک‌گذاری وضعیت‌ها در tensorflow اضافه می‌کند.

استدلال‌ها:

  • دامنه: یک شیء دامنه
  • شکل: شکل تانسور متغیر.
  • dtype: نوع عناصر در تانسور متغیر.

ویژگی‌های اختیاری (به Attrs مراجعه کنید):

  • ظرف: اگر خالی نباشد، این متغیر در ظرف داده شده قرار می‌گیرد. در غیر این صورت، از ظرف پیش‌فرض استفاده می‌شود.
  • 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
ref

کارکردهای عمومی

node () const
::tensorflow::Node *
operator::tensorflow::Input () const
operator::tensorflow::Output () const

توابع استاتیک عمومی

Container (StringPiece x)
SharedName (StringPiece x)

ساختارها

tensorflow::ops::متغیر::Attrs

تنظیم‌کننده‌های ویژگی اختیاری برای متغیر .

ویژگی‌های عمومی

عملیات

Operation operation

مرجع

::tensorflow::Output ref

کارکردهای عمومی

متغیر

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

متغیر

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

گره

::tensorflow::Node * node() const 

عملگر::tensorflow::ورودی

 operator::tensorflow::Input() const 

عملگر::tensorflow::خروجی

 operator::tensorflow::Output() const 

توابع استاتیک عمومی

کانتینر

Attrs Container(
  StringPiece x
)

نام مشترک

Attrs SharedName(
  StringPiece x
)