เทนเซอร์โฟลว์:: ปฏิบัติการ:: FakeQuantWithMinMaxArgs
#include <array_ops.h>วัดปริมาณปลอมของเทนเซอร์ 'อินพุต' พิมพ์ float เป็นเทนเซอร์ 'เอาท์พุต' ที่เป็นประเภทเดียวกัน
สรุป
คุณสมบัติ [min; max] กำหนดช่วงการจับยึดสำหรับข้อมูล inputs ค่า inputs จะถูกหาปริมาณในช่วงการหาปริมาณ ( [0; 2^num_bits - 1] เมื่อ narrow_range เป็นเท็จ และ [1; 2^num_bits - 1] เมื่อเป็นจริง) จากนั้นจึงยกเลิกปริมาณและส่งออกเป็นลอยใน [min; max] ช่วงเวลา num_bits คือบิตไวด์ธของการหาปริมาณ ระหว่างวันที่ 2 ถึง 16 รวมอยู่ด้วย
ก่อนการหาปริมาณ ค่า min และ max จะถูกปรับตามตรรกะต่อไปนี้ แนะนำให้มี min <= 0 <= max หาก 0 ไม่อยู่ในช่วงของค่า ลักษณะการทำงานอาจไม่คาดคิด: หาก 0 < min < max : min_adj = 0 และ max_adj = max - min ถ้า min < max < 0 : min_adj = min - max และ max_adj = 0 ถ้า min <= 0 <= max : scale = (max - min) / (2^num_bits - 1) , min_adj = scale * round(min / scale) และ max_adj = max + min_adj - min
การหาปริมาณเรียกว่าปลอมเนื่องจากเอาต์พุตยังอยู่ในจุดลอยตัว
ข้อโต้แย้ง:
- ขอบเขต: วัตถุ ขอบเขต
ผลตอบแทน:
-
Output: เทนเซอร์เอาท์พุต
ตัวสร้างและผู้ทำลาย | |
|---|---|
FakeQuantWithMinMaxArgs (const :: tensorflow::Scope & scope, :: tensorflow::Input inputs) | |
FakeQuantWithMinMaxArgs (const :: tensorflow::Scope & scope, :: tensorflow::Input inputs, const FakeQuantWithMinMaxArgs::Attrs & attrs) |
คุณลักษณะสาธารณะ | |
|---|---|
operation | |
outputs | |
งานสาธารณะ | |
|---|---|
node () const | ::tensorflow::Node * |
operator::tensorflow::Input () const | |
operator::tensorflow::Output () const | |
ฟังก์ชันคงที่สาธารณะ | |
|---|---|
Max (float x) | |
Min (float x) | |
NarrowRange (bool x) | |
NumBits (int64 x) | |
โครงสร้าง | |
|---|---|
| เทนเซอร์โฟลว์ :: ops :: FakeQuantWithMinMaxArgs :: Attrs | ตัวตั้งค่าแอ็ตทริบิวต์ทางเลือกสำหรับ FakeQuantWithMinMaxArgs |
คุณลักษณะสาธารณะ
การดำเนินการ
Operation operation
เอาท์พุท
::tensorflow::Output outputs
งานสาธารณะ
FakeQuantWithMinMaxArgs
FakeQuantWithMinMaxArgs( const ::tensorflow::Scope & scope, ::tensorflow::Input inputs )
FakeQuantWithMinMaxArgs
FakeQuantWithMinMaxArgs( const ::tensorflow::Scope & scope, ::tensorflow::Input inputs, const FakeQuantWithMinMaxArgs::Attrs & attrs )
โหนด
::tensorflow::Node * node() const
ตัวดำเนินการ::tensorflow::อินพุต
operator::tensorflow::Input() const
ตัวดำเนินการ::tensorflow::เอาต์พุต
operator::tensorflow::Output() const
ฟังก์ชันคงที่สาธารณะ
สูงสุด
Attrs Max( float x )
นาที
Attrs Min( float x )
ช่วงแคบ
Attrs NarrowRange( bool x )
นัมบิตส์
Attrs NumBits( int64 x )