เทนเซอร์โฟลว์:: ปฏิบัติการ:: ปริมาณMatMul
#include <math_ops.h> ทำการคูณเมทริกซ์เชิงปริมาณของ a ด้วยเมทริกซ์ b
สรุป
อินพุตต้องเป็นเมทริกซ์สองมิติ และมิติภายในของ a (หลังจากถูกย้ายหาก transpose_a ไม่เป็นศูนย์) จะต้องตรงกับมิติภายนอกของ b (หลังจากถูกย้ายแล้ว หาก transposed_b ไม่ใช่ศูนย์)
ข้อโต้แย้ง:
- ขอบเขต: วัตถุ ขอบเขต
- ก: ต้องเป็นเทนเซอร์สองมิติ
- b: ต้องเป็นเทนเซอร์สองมิติ
- min_a: ค่าทศนิยมที่
aปริมาณต่ำสุดเป็นตัวแทน - max_a: ค่าทศนิยมที่
aที่มีปริมาณสูงสุดเป็นตัวแทน - min_b: ค่าทศนิยมที่ค่า
bเชิงปริมาณต่ำสุดเป็นตัวแทน - max_b: ค่าทศนิยมที่ค่า
bที่มีปริมาณสูงสุดเป็นตัวแทน
แอ็ตทริบิวต์ทางเลือก (ดู Attrs ):
- transpose_a: ถ้าเป็นจริง
aจะถูกย้ายก่อนการคูณ - transpose_b: ถ้าเป็นจริง
bจะถูกย้ายก่อนการคูณ - การเปิดใช้งาน: ประเภทของเอาต์พุตที่สร้างโดยฟังก์ชันการเปิดใช้งานหลังจากการดำเนินการนี้
ผลตอบแทน:
-
Outputออกมา -
Outputmin_out: ค่าทศนิยมที่ค่าเอาต์พุตเชิงปริมาณต่ำสุดเป็นตัวแทน -
Outputmax_out: ค่าทศนิยมที่ค่าเอาต์พุตเชิงปริมาณสูงสุดเป็นตัวแทน
ตัวสร้างและผู้ทำลาย | |
|---|---|
QuantizedMatMul (const :: tensorflow::Scope & scope, :: tensorflow::Input a, :: tensorflow::Input b, :: tensorflow::Input min_a, :: tensorflow::Input max_a, :: tensorflow::Input min_b, :: tensorflow::Input max_b) | |
QuantizedMatMul (const :: tensorflow::Scope & scope, :: tensorflow::Input a, :: tensorflow::Input b, :: tensorflow::Input min_a, :: tensorflow::Input max_a, :: tensorflow::Input min_b, :: tensorflow::Input max_b, const QuantizedMatMul::Attrs & attrs) |
คุณลักษณะสาธารณะ | |
|---|---|
max_out | |
min_out | |
operation | |
out | |
ฟังก์ชันคงที่สาธารณะ | |
|---|---|
Tactivation (DataType x) | |
Toutput (DataType x) | |
TransposeA (bool x) | |
TransposeB (bool x) | |
โครงสร้าง | |
|---|---|
| เทนเซอร์โฟลว์ :: ops :: QuantizedMatMul :: Attrs | ตัวตั้งค่าคุณลักษณะเสริมสำหรับ QuantizedMatMul |
คุณลักษณะสาธารณะ
สูงสุด_ออก
::tensorflow::Output max_out
นาที_ออก
::tensorflow::Output min_out
การดำเนินการ
Operation operation
ออก
::tensorflow::Output out
งานสาธารณะ
ปริมาณMatMul
QuantizedMatMul( const ::tensorflow::Scope & scope, ::tensorflow::Input a, ::tensorflow::Input b, ::tensorflow::Input min_a, ::tensorflow::Input max_a, ::tensorflow::Input min_b, ::tensorflow::Input max_b )
ปริมาณMatMul
QuantizedMatMul( const ::tensorflow::Scope & scope, ::tensorflow::Input a, ::tensorflow::Input b, ::tensorflow::Input min_a, ::tensorflow::Input max_a, ::tensorflow::Input min_b, ::tensorflow::Input max_b, const QuantizedMatMul::Attrs & attrs )
ฟังก์ชันคงที่สาธารณะ
การเปิดใช้งาน
Attrs Tactivation( DataType x )
พูดจาโผงผาง
Attrs Toutput( DataType x )
ย้ายA
Attrs TransposeA( bool x )
ทรานโพสบี
Attrs TransposeB( bool x )