tensorflow::ops::Tan

#include <math_ops.h>

Tính tan của x theo từng phần tử.

Bản tóm tắt

Hàm này, với một tensor đầu vào được cung cấp, sẽ tính tang của mọi phần tử trong tensor đó. Phạm vi đầu vào là (-inf, inf) và phạm vi đầu ra là (-inf, inf) . Nếu đầu vào nằm ngoài phạm vi này, hàm sẽ trả về 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]
  

Luận điểm:

Trả về:

Hàm khởi tạo và hàm hủy

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

Thuộc tính công khai

operation
y

Chức năng công cộng

node () const
::tensorflow::Node *
operator::tensorflow::Input () const
operator::tensorflow::Output () const

Thuộc tính công khai

hoạt động

Operation operation

y

::tensorflow::Output y

Chức năng công cộng

Nâu

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

nút

::tensorflow::Node * node() const 

operator::tensorflow::Input

 operator::tensorflow::Input() const 

operator::tensorflow::Output

 operator::tensorflow::Output() const