tensorflow::ops::RandomShuffleQueue

#include <data_flow_ops.h>

คิวที่สุ่มลำดับขององค์ประกอบต่างๆ

สรุป

ข้อโต้แย้ง:

  • ขอบเขต: วัตถุ ขอบเขต
  • component_types: ประเภทของแต่ละส่วนประกอบในค่า

คุณลักษณะเสริม (ดูที่ Attrs ):

  • shapes: รูปทรงของแต่ละส่วนประกอบในค่า ความยาวของแอตทริบิวต์นี้ต้องเป็น 0 หรือเท่ากับความยาวของ component_types หากความยาวของแอตทริบิวต์นี้เป็น 0 รูปทรงขององค์ประกอบในคิวจะไม่ถูกจำกัด และสามารถดึงองค์ประกอบออกจากคิวได้ครั้งละหนึ่งรายการเท่านั้น
  • ความจุ: ขีดจำกัดสูงสุดของจำนวนองค์ประกอบในคิวนี้ ตัวเลขติดลบหมายถึงไม่มีขีดจำกัด
  • min_after_dequeue: การดึงข้อมูลออกจากคิวจะหยุดทำงานจนกว่าจะมีจำนวนองค์ประกอบเหลืออยู่หลังจากดึงข้อมูลเสร็จสิ้นตามจำนวนที่กำหนดไว้ หรือคิวถูกปิด เงื่อนไขนี้ช่วยให้มั่นใจได้ว่าจะมีองค์ประกอบปะปนกันในระดับน้อยที่สุด
  • seed: หาก seed หรือ seed2 ตัวใดตัวหนึ่งถูกตั้งค่าเป็นค่าที่ไม่ใช่ศูนย์ ตัวสร้างเลขสุ่มจะใช้ seed ที่กำหนดให้ มิฉะนั้น จะใช้ seed แบบสุ่ม
  • seed2: เมล็ดพันธุ์ที่สองเพื่อหลีกเลี่ยงการชนกันของเมล็ดพันธุ์
  • คอนเทนเนอร์: หากไม่ว่างเปล่า คิวนี้จะถูกจัดวางไว้ในคอนเทนเนอร์ที่กำหนด มิเช่นนั้น จะใช้คอนเทนเนอร์เริ่มต้น
  • shared_name: หากไม่ว่างเปล่า คิวนี้จะถูกใช้ร่วมกันภายใต้ชื่อที่กำหนดโดยหลายเซสชัน

การส่งคืนสินค้า:

  • Output : ตัวจัดการคิว

ตัวสร้างและตัวทำลาย

RandomShuffleQueue (const :: tensorflow::Scope & scope, const DataTypeSlice & component_types)
RandomShuffleQueue (const :: tensorflow::Scope & scope, const DataTypeSlice & component_types, const RandomShuffleQueue::Attrs & attrs)

คุณลักษณะสาธารณะ

handle
operation

หน้าที่สาธารณะ

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

ฟังก์ชันคงที่สาธารณะ

Capacity (int64 x)
Container (StringPiece x)
MinAfterDequeue (int64 x)
Seed (int64 x)
Seed2 (int64 x)
Shapes (const gtl::ArraySlice< PartialTensorShape > & x)
SharedName (StringPiece x)

โครงสร้าง

tensorflow::ops::RandomShuffleQueue::Attrs

ตัวเลือกในการตั้งค่าแอตทริบิวต์สำหรับ RandomShuffleQueue

คุณลักษณะสาธารณะ

รับมือ

::tensorflow::Output handle

การดำเนินการ

Operation operation

หน้าที่สาธารณะ

สุ่มสลับคิว

 RandomShuffleQueue(
  const ::tensorflow::Scope & scope,
  const DataTypeSlice & component_types
)

สุ่มสลับคิว

 RandomShuffleQueue(
  const ::tensorflow::Scope & scope,
  const DataTypeSlice & component_types,
  const RandomShuffleQueue::Attrs & attrs
)

โหนด

::tensorflow::Node * node() const 

ตัวดำเนินการ::เทนเซอร์โฟลว์::อินพุต

 operator::tensorflow::Input() const 

ตัวดำเนินการ::เทนเซอร์โฟลว์::เอาต์พุต

 operator::tensorflow::Output() const 

ฟังก์ชันคงที่สาธารณะ

ความจุ

Attrs Capacity(
  int64 x
)

คอนเทนเนอร์

Attrs Container(
  StringPiece x
)

นาทีหลังจากยกเลิกคิว

Attrs MinAfterDequeue(
  int64 x
)

เมล็ดพันธุ์

Attrs Seed(
  int64 x
)

เมล็ดพันธุ์2

Attrs Seed2(
  int64 x
)

รูปทรง

Attrs Shapes(
  const gtl::ArraySlice< PartialTensorShape > & x
)

ชื่อที่ใช้ร่วมกัน

Attrs SharedName(
  StringPiece x
)