tensorflow::ops::CheckNumerics
#include <array_ops.h>ตรวจสอบเทนเซอร์เพื่อหาค่า NaN และ Inf
สรุป
เมื่อรันโปรแกรม จะรายงานข้อผิดพลาด InvalidArgument หาก tensor มีค่าใดๆ ที่ไม่ใช่ตัวเลข (NaN) หรืออนันต์ (Inf) มิเช่นนั้น จะส่งผ่าน tensor ไปตามเดิม
ข้อโต้แย้ง:
- ขอบเขต: วัตถุ ขอบเขต
- ข้อความ: คำนำหน้าของข้อความแสดงข้อผิดพลาด
การส่งคืนสินค้า:
-
Output: เทนเซอร์เอาต์พุต
ตัวสร้างและตัวทำลาย | |
|---|---|
CheckNumerics (const :: tensorflow::Scope & scope, :: tensorflow::Input tensor, StringPiece message) |
คุณลักษณะสาธารณะ | |
|---|---|
operation | |
output | |
หน้าที่สาธารณะ | |
|---|---|
node () const | ::tensorflow::Node * |
operator::tensorflow::Input () const | |
operator::tensorflow::Output () const | |
คุณลักษณะสาธารณะ
การดำเนินการ
Operation operation
เอาต์พุต
::tensorflow::Output output
หน้าที่สาธารณะ
ตรวจสอบตัวเลข
CheckNumerics( const ::tensorflow::Scope & scope, ::tensorflow::Input tensor, StringPiece message )
โหนด
::tensorflow::Node * node() const
ตัวดำเนินการ::เทนเซอร์โฟลว์::อินพุต
operator::tensorflow::Input() const
ตัวดำเนินการ::เทนเซอร์โฟลว์::เอาต์พุต
operator::tensorflow::Output() const