تينسورفلو :: العمليات :: إكسب
#include <math_ops.h>
يحسب أسيًا لـ x عنصرًا.
ملخص
\(y = e^x\).
تحسب هذه الوظيفة الأسي لكل عنصر في موتر الإدخال. على سبيل exp(x)
أو e^(x)
، حيث x
هو موتر الإدخال. تشير e
إلى رقم أويلر وهي تساوي تقريبًا 2.718281. الإخراج إيجابي لأي مدخلات حقيقية.
x = tf.constant(2.0) tf.math.exp(x) ==> 7.389056
x = tf.constant([2.0, 8.0]) tf.math.exp(x) ==> array([7.389056, 2980.958], dtype=float32)
بالنسبة للأرقام المركبة ، يتم حساب القيمة الأسية على النحو التالي:
e^(x+iy) = e^x * e^iy = e^x * (cos y + i sin y)
لنفكر في العدد المركب 1 + 1j كمثال. e ^ 1 * (cos 1 + i sin 1) = 2.7182818284590 * (0.54030230586 + 0.8414709848j)
x = tf.constant(1 + 1j) tf.math.exp(x) ==> 1.4686939399158851+2.2873552871788423j
الحجج:
- النطاق: كائن النطاق
عائدات:
-
Output
: موتر y.
البنائين والمدمرين | |
---|---|
Exp (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
الوظائف العامة
إكسب
Exp( const ::tensorflow::Scope & scope, ::tensorflow::Input x )
العقدة
::tensorflow::Node * node() const
المشغل :: tensorflow :: الإدخال
operator::tensorflow::Input() const
المشغل :: Tensorflow :: Output
operator::tensorflow::Output() const
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2020-04-20 UTC.
[{
"type": "thumb-down",
"id": "missingTheInformationINeed",
"label":"Missing the information I need"
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label":"Too complicated / too many steps"
},{
"type": "thumb-down",
"id": "outOfDate",
"label":"Out of date"
},{
"type": "thumb-down",
"id": "translationIssue",
"label":"Translation issue"
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label":"مشكلة في العيّنات / التعليمات البرمجية"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"Other"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"Easy to understand"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"Solved my problem"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"Other"
}]