เทนเซอร์โฟลว์:: ปฏิบัติการ:: InplaceUpdate
#include <array_ops.h>อัพเดตแถวที่ระบุ 'i' ด้วยค่า 'v'
สรุป
คำนวณ x[i, :] = v; return x
เดิมทีฟังก์ชันนี้สามารถเปลี่ยนแปลงได้ แต่สำหรับการคอมไพล์ เราทำให้การดำเนินการนี้สร้าง / ดำเนินการกับสำเนาของ x
ข้อโต้แย้ง:
- ขอบเขต: วัตถุ ขอบเขต
- x: เทนเซอร์ประเภท
T - ฉัน: เวกเตอร์ ดัชนีอยู่ในมิติซ้ายสุดของ
x - v:
Tensorประเภท T ขนาดมิติเดียวกันกับ x ยกเว้นมิติแรกซึ่งจะต้องเท่ากับขนาดของ i
ผลตอบแทน:
ตัวสร้างและผู้ทำลาย | |
|---|---|
InplaceUpdate (const :: tensorflow::Scope & scope, :: tensorflow::Input x, :: tensorflow::Input i, :: tensorflow::Input v) |
คุณลักษณะสาธารณะ | |
|---|---|
operation | |
y | |
งานสาธารณะ | |
|---|---|
node () const | ::tensorflow::Node * |
operator::tensorflow::Input () const | |
operator::tensorflow::Output () const | |
คุณลักษณะสาธารณะ
การดำเนินการ
Operation operation
ย
::tensorflow::Output y
งานสาธารณะ
InplaceUpdate
InplaceUpdate( const ::tensorflow::Scope & scope, ::tensorflow::Input x, ::tensorflow::Input i, ::tensorflow::Input v )
โหนด
::tensorflow::Node * node() const
ตัวดำเนินการ::tensorflow::อินพุต
operator::tensorflow::Input() const
ตัวดำเนินการ::tensorflow::เอาต์พุต
operator::tensorflow::Output() const