@Namespace(value="tensorflow::ops") @NoOffset @Properties(inherit=tensorflow.class) public class Exp extends Pointer
exp(x)
or e^(x)
, where x
is the input tensor.
e
denotes Euler's number and is approximately equal to 2.718281.
Output is positive for any real input.
python
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)
For complex numbers, the exponential value is calculated as follows:
e^(x+iy) = e^x * e^iy = e^x * (cos y + i sin y)
Let's consider complex number 1+1j as an example.
e^1 * (cos 1 + i sin 1) = 2.7182818284590 * (0.54030230586+0.8414709848j)
python
x = tf.constant(1 + 1j)
tf.math.exp(x) ==> 1.4686939399158851+2.2873552871788423j
Arguments:
* scope: A Scope object
Returns:
* Output
: The y tensor.Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Constructor and Description |
---|
Exp(Pointer p)
Pointer cast constructor.
|
Exp(Scope scope,
Input x) |
Modifier and Type | Method and Description |
---|---|
Input |
asInput() |
Output |
asOutput() |
Node |
node() |
Operation |
operation() |
Exp |
operation(Operation setter) |
Output |
y() |
Exp |
y(Output setter) |
address, asBuffer, asByteBuffer, availablePhysicalBytes, calloc, capacity, capacity, close, deallocate, deallocate, deallocateReferences, deallocator, deallocator, equals, fill, formatBytes, free, getDirectBufferAddress, getPointer, getPointer, getPointer, getPointer, hashCode, interruptDeallocatorThread, isNull, isNull, limit, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetAddress, offsetof, offsetof, parseBytes, physicalBytes, physicalBytesInaccurate, position, position, put, realloc, referenceCount, releaseReference, retainReference, setNull, sizeof, sizeof, toString, totalBytes, totalCount, totalPhysicalBytes, withDeallocator, zero
public Exp(Pointer p)
Pointer(Pointer)
.public Node node()
Copyright © 2022. All rights reserved.