@Namespace(value="tensorflow::ops") @NoOffset @Properties(inherit=tensorflow.class) public class Tanh extends Pointer
x
element-wise.
Given an input tensor, this function computes hyperbolic tangent of every
element in the tensor. Input range is [-inf, inf]
and
output range is [-1,1]
.
python
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.]
Arguments:
* scope: A Scope object
Returns:
* Output
: The y tensor.Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Constructor and Description |
---|
Tanh(Pointer p)
Pointer cast constructor.
|
Tanh(Scope scope,
Input x) |
Modifier and Type | Method and Description |
---|---|
Input |
asInput() |
Output |
asOutput() |
Node |
node() |
Operation |
operation() |
Tanh |
operation(Operation setter) |
Output |
y() |
Tanh |
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 Tanh(Pointer p)
Pointer(Pointer)
.public Node node()
Copyright © 2022. All rights reserved.