เทนเซอร์โฟลว์:: ปฏิบัติการ:: ตาล

#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

::tensorflow::Output y

งานสาธารณะ

ตาล

 Tan(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input x
)

โหนด

::tensorflow::Node * node() const 

ตัวดำเนินการ::tensorflow::อินพุต

 operator::tensorflow::Input() const 

ตัวดำเนินการ::tensorflow::เอาต์พุต

 operator::tensorflow::Output() const