เทนเซอร์โฟลว์:: ออปส์:: ซิน
#include <math_ops.h>คำนวณค่าไซน์ของ x ทีละองค์ประกอบ
สรุป
ฟังก์ชันนี้จะคำนวณค่าไซน์ของทุกองค์ประกอบในเทนเซอร์ โดยรับเทนเซอร์เป็นอินพุต ช่วง ของอินพุต คือ (-inf, inf) และช่วงของเอาต์พุตคือ [-1,1]
x = tf.constant([-float("inf"), -9, -0.5, 1, 1.2, 200, 10, float("inf")]) tf.math.sin(x) ==> [nan -0.4121185 -0.47942555 0.84147096 0.9320391 -0.87329733 -0.54402107 nan]
ข้อโต้แย้ง:
- ขอบเขต: วัตถุ ขอบเขต
การส่งคืนสินค้า:
-
Output: เทนเซอร์ y
ตัวสร้างและตัวทำลาย | |
|---|---|
Sin (const :: tensorflow::Scope & scope, :: tensorflow::Input x) |
คุณลักษณะสาธารณะ | |
|---|---|
operation | |
y | |
หน้าที่สาธารณะ | |
|---|---|
node () const | ::tensorflow::Node * |
operator::tensorflow::Input () const | |
operator::tensorflow::Output () const | |
คุณลักษณะสาธารณะ
การดำเนินการ
Operation operation
y
::tensorflow::Output y
หน้าที่สาธารณะ
บาป
Sin( const ::tensorflow::Scope & scope, ::tensorflow::Input x )
โหนด
::tensorflow::Node * node() const
ตัวดำเนินการ::เทนเซอร์โฟลว์::อินพุต
operator::tensorflow::Input() const
ตัวดำเนินการ::เทนเซอร์โฟลว์::เอาต์พุต
operator::tensorflow::Output() const