เทนเซอร์โฟลว์:: ออปส์:: ลินสเปซ
#include <math_ops.h>สร้างค่าในช่วงเวลาที่กำหนด
สรุป
มีการสร้างลำดับของค่าจำนวน num ค่าที่เว้นระยะห่างเท่าๆ กัน โดยเริ่มต้นที่ start ถ้า num > 1 ค่าในลำดับจะเพิ่มขึ้นทีละ stop - start / num - 1 จนกระทั่งค่าสุดท้ายเป็น stop พอดี
ตัวอย่างเช่น:
tf.linspace(10.0, 12.0, 3, name="linspace") => [ 10.0 11.0 12.0]
ข้อโต้แย้ง:
- ขอบเขต: วัตถุ ขอบเขต
- เริ่มต้น: เทนเซอร์ 0 มิติ รายการแรกในช่วง
- จุดหยุด: เทนเซอร์ 0 มิติ รายการสุดท้ายในช่วง
- num: เทนเซอร์ 0 มิติ จำนวนค่าที่จะสร้าง
การส่งคืนสินค้า:
-
Output: 1 มิติ ค่าที่สร้างขึ้น
ตัวสร้างและตัวทำลาย | |
|---|---|
LinSpace (const :: tensorflow::Scope & scope, :: tensorflow::Input start, :: tensorflow::Input stop, :: tensorflow::Input num) |
คุณลักษณะสาธารณะ | |
|---|---|
operation | |
output | |
หน้าที่สาธารณะ | |
|---|---|
node () const | ::tensorflow::Node * |
operator::tensorflow::Input () const | |
operator::tensorflow::Output () const | |
คุณลักษณะสาธารณะ
การดำเนินการ
Operation operation
เอาต์พุต
::tensorflow::Output output
หน้าที่สาธารณะ
ลินสเปซ
LinSpace( const ::tensorflow::Scope & scope, ::tensorflow::Input start, ::tensorflow::Input stop, ::tensorflow::Input num )
โหนด
::tensorflow::Node * node() const
ตัวดำเนินการ::เทนเซอร์โฟลว์::อินพุต
operator::tensorflow::Input() const
ตัวดำเนินการ::เทนเซอร์โฟลว์::เอาต์พุต
operator::tensorflow::Output() const