tensorflow::ops::Sin
#include <math_ops.h>Tính sin 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 sin 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à [-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]
Luận điểm:
- phạm vi: Một đối tượng Phạm vi
Trả về:
-
Output: Tensor y.
Hàm khởi tạo và hàm hủy | |
|---|---|
Sin (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
Tội lỗi
Sin( 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