تدفق التوتر:: العمليات:: تانه
#include <math_ops.h>
يحسب الظل الزائدي للعنصر x
.
ملخص
بالنظر إلى موتر الإدخال، تحسب هذه الدالة الظل الزائدي لكل عنصر في الموتر. نطاق الإدخال هو [-inf, inf]
ونطاق الإخراج هو [-1,1]
.
x = tf.constant([-float("inf"), -5, -0.5, 1, 1.2, 2, 3, float("inf")])
tf.math.tanh(x) ==> [-1. -0.99990916 -0.46211717 0.7615942 0.8336547 0.9640276 0.9950547 1.]
الحجج:
- النطاق: كائن النطاق
العوائد:
-
Output
: الموتر y.
البنائين والمدمرين | |
---|---|
Tanh (const :: tensorflow::Scope & scope, :: tensorflow::Input x) |
الوظائف العامة | |
---|---|
node () const | ::tensorflow::Node * |
operator::tensorflow::Input () const | |
operator::tensorflow::Output () const |
الصفات العامة
عملية
Operation operation
ذ
::tensorflow::Output y
الوظائف العامة
تانه
Tanh(
const ::tensorflow::Scope & scope,
::tensorflow::Input x
)
العقدة
::tensorflow::Node * node() const
المشغل::tensorflow::الإدخال
operator::tensorflow::Input() const
المشغل::tensorflow::الإخراج
operator::tensorflow::Output() const