เทนเซอร์โฟลว์:: ออปส์:: แทน
#include <math_ops.h>คำนวณค่า tan ของ x ทีละองค์ประกอบ
สรุป
ฟังก์ชันนี้รับเทนเซอร์เป็นอินพุต และคำนวณค่าแทนเจนต์ของทุกองค์ประกอบในเทนเซอร์นั้น ช่วง ของอินพุต คือ (-inf, inf) และช่วงของเอาต์พุตคือ (-inf, inf) หากอินพุตอยู่นอกขอบเขต จะส่งคืนค่า nan
x = tf.constant([-float("inf"), -9, -0.5, 1, 1.2, 200, 10000, float("inf")]) tf.math.tan(x) ==> [nan 0.45231566 -0.5463025 1.5574077 2.572152 -1.7925274 0.32097113 nan]
ข้อโต้แย้ง:
- ขอบเขต: วัตถุ ขอบเขต
การส่งคืนสินค้า:
-
Output: เทนเซอร์ y
ตัวสร้างและตัวทำลาย | |
|---|---|
Tan (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
หน้าที่สาธารณะ
แทน
Tan( const ::tensorflow::Scope & scope, ::tensorflow::Input x )
โหนด
::tensorflow::Node * node() const
ตัวดำเนินการ::เทนเซอร์โฟลว์::อินพุต
operator::tensorflow::Input() const
ตัวดำเนินการ::เทนเซอร์โฟลว์::เอาต์พุต
operator::tensorflow::Output() const