tensorflow::ops::SparseTensorDenseMatMul
#include <sparse_ops.h>คูณ เมทริกซ์แบบสปาร์ส (อันดับ 2) "A" ด้วยเมทริกซ์แบบหนาแน่น "B"
สรุป
ไม่มีการตรวจสอบความถูกต้องของดัชนีใน A อย่างไรก็ตาม ขอแนะนำรูปแบบการป้อนข้อมูลต่อไปนี้เพื่อให้ได้ผลลัพธ์ที่ดีที่สุด:
ถ้า adjoint_a == false: ควรเรียงลำดับ A ตามลำดับตัวอักษรจากน้อยไปมาก ใช้ SparseReorder หากไม่แน่ใจ ถ้า adjoint_a == true: ควรเรียงลำดับ A ตามลำดับมิติที่เพิ่มขึ้น 1 (เช่น เรียงตามคอลัมน์แทนที่จะเป็นเรียงตามแถว)
ข้อโต้แย้ง:
- ขอบเขต: วัตถุ ขอบเขต
- a_indices: 2 มิติ
indicesของเมทริกซ์SparseTensorขนาด[nnz, 2] - a_values: เวกเตอร์ 1 มิติ
valuesของSparseTensorขนาด[nnz] - a_shape: 1 มิติ
shapeของSparseTensorขนาด[2]เวกเตอร์ - b: 2 มิติ เมทริกซ์หนาแน่น
คุณลักษณะเสริม (ดูที่ Attrs ):
- adjoint_a: ใช้เมทริกซ์ผกผันของ A ในการคูณเมทริกซ์ ถ้า A เป็นจำนวนเชิงซ้อน จะใช้ transpose(conj(A)) มิเช่นนั้นจะใช้ transpose(A)
- adjoint_b: ใช้เมทริกซ์ผกผันของ B ในการคูณเมทริกซ์ ถ้า B เป็นจำนวนเชิงซ้อน จะใช้ transpose(conj(B)) มิเช่นนั้นจะใช้ transpose(B)
การส่งคืนสินค้า:
-
Output: เทนเซอร์ผลคูณ
ตัวสร้างและตัวทำลาย | |
|---|---|
SparseTensorDenseMatMul (const :: tensorflow::Scope & scope, :: tensorflow::Input a_indices, :: tensorflow::Input a_values, :: tensorflow::Input a_shape, :: tensorflow::Input b) | |
SparseTensorDenseMatMul (const :: tensorflow::Scope & scope, :: tensorflow::Input a_indices, :: tensorflow::Input a_values, :: tensorflow::Input a_shape, :: tensorflow::Input b, const SparseTensorDenseMatMul::Attrs & attrs) |
คุณลักษณะสาธารณะ | |
|---|---|
operation | |
product | |
หน้าที่สาธารณะ | |
|---|---|
node () const | ::tensorflow::Node * |
operator::tensorflow::Input () const | |
operator::tensorflow::Output () const | |
ฟังก์ชันคงที่สาธารณะ | |
|---|---|
AdjointA (bool x) | |
AdjointB (bool x) | |
โครงสร้าง | |
|---|---|
| tensorflow::ops::SparseTensorDenseMatMul::Attrs | ตัวเลือกการตั้งค่าแอตทริบิวต์สำหรับ SparseTensorDenseMatMul |
คุณลักษณะสาธารณะ
การดำเนินการ
Operation operation
ผลิตภัณฑ์
::tensorflow::Output product
หน้าที่สาธารณะ
SparseTensorDenseMatMul
SparseTensorDenseMatMul( const ::tensorflow::Scope & scope, ::tensorflow::Input a_indices, ::tensorflow::Input a_values, ::tensorflow::Input a_shape, ::tensorflow::Input b )
SparseTensorDenseMatMul
SparseTensorDenseMatMul( const ::tensorflow::Scope & scope, ::tensorflow::Input a_indices, ::tensorflow::Input a_values, ::tensorflow::Input a_shape, ::tensorflow::Input b, const SparseTensorDenseMatMul::Attrs & attrs )
โหนด
::tensorflow::Node * node() const
ตัวดำเนินการ::เทนเซอร์โฟลว์::อินพุต
operator::tensorflow::Input() const
ตัวดำเนินการ::เทนเซอร์โฟลว์::เอาต์พุต
operator::tensorflow::Output() const
ฟังก์ชันคงที่สาธารณะ
แอดจอยต์เอ
Attrs AdjointA( bool x )
แอดจอยต์บี
Attrs AdjointB( bool x )