Activation
Stay organized with collections
Save and categorize content based on your preferences.
Known Direct Subclasses
ELU<T extends TFloating>,
Exponential<T extends TFloating>,
HardSigmoid<T extends TFloating>,
Linear<U extends TNumber>,
ReLU<T extends TNumber>,
SELU<T extends TFloating>,
Sigmoid<T extends TFloating>,
Softmax<T extends TFloating>,
Softplus<T extends TFloating>,
Softsign<T extends TFloating>,
Swish<T extends TFloating>,
Tanh<T extends TFloating>
|
Public Methods
abstract
Operand<T>
|
call( Operand<T> input)
Gets the calculation operation for the activation.
|
Inherited Methods
From class
java.lang.Object
boolean
|
equals(Object arg0)
|
final
Class<?>
|
getClass()
|
int
|
hashCode()
|
final
void
|
notify()
|
final
void
|
notifyAll()
|
String
|
toString()
|
final
void
|
wait(long arg0, int arg1)
|
final
void
|
wait(long arg0)
|
final
void
|
wait()
|
Public Methods
Gets the calculation operation for the activation.
Returns
- The operand for the activation
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 2021-11-29 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2021-11-29 UTC."],[],[],null,["# Activation\n\npublic abstract class **Activation** \n\n|---|---|---|\n| Known Direct Subclasses [ELU](/jvm/api_docs/java/org/tensorflow/framework/activations/ELU)\\\u003cT extends [TFloating](/jvm/api_docs/java/org/tensorflow/types/family/TFloating)\\\u003e, [Exponential](/jvm/api_docs/java/org/tensorflow/framework/activations/Exponential)\\\u003cT extends [TFloating](/jvm/api_docs/java/org/tensorflow/types/family/TFloating)\\\u003e, [HardSigmoid](/jvm/api_docs/java/org/tensorflow/framework/activations/HardSigmoid)\\\u003cT extends [TFloating](/jvm/api_docs/java/org/tensorflow/types/family/TFloating)\\\u003e, [Linear](/jvm/api_docs/java/org/tensorflow/framework/activations/Linear)\\\u003cU extends [TNumber](/jvm/api_docs/java/org/tensorflow/types/family/TNumber)\\\u003e, [ReLU](/jvm/api_docs/java/org/tensorflow/framework/activations/ReLU)\\\u003cT extends [TNumber](/jvm/api_docs/java/org/tensorflow/types/family/TNumber)\\\u003e, [SELU](/jvm/api_docs/java/org/tensorflow/framework/activations/SELU)\\\u003cT extends [TFloating](/jvm/api_docs/java/org/tensorflow/types/family/TFloating)\\\u003e, [Sigmoid](/jvm/api_docs/java/org/tensorflow/framework/activations/Sigmoid)\\\u003cT extends [TFloating](/jvm/api_docs/java/org/tensorflow/types/family/TFloating)\\\u003e, [Softmax](/jvm/api_docs/java/org/tensorflow/framework/activations/Softmax)\\\u003cT extends [TFloating](/jvm/api_docs/java/org/tensorflow/types/family/TFloating)\\\u003e, [Softplus](/jvm/api_docs/java/org/tensorflow/framework/activations/Softplus)\\\u003cT extends [TFloating](/jvm/api_docs/java/org/tensorflow/types/family/TFloating)\\\u003e, [Softsign](/jvm/api_docs/java/org/tensorflow/framework/activations/Softsign)\\\u003cT extends [TFloating](/jvm/api_docs/java/org/tensorflow/types/family/TFloating)\\\u003e, [Swish](/jvm/api_docs/java/org/tensorflow/framework/activations/Swish)\\\u003cT extends [TFloating](/jvm/api_docs/java/org/tensorflow/types/family/TFloating)\\\u003e, [Tanh](/jvm/api_docs/java/org/tensorflow/framework/activations/Tanh)\\\u003cT extends [TFloating](/jvm/api_docs/java/org/tensorflow/types/family/TFloating)\\\u003e |-----------------------------------------------------------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------| | [ELU](/jvm/api_docs/java/org/tensorflow/framework/activations/ELU)\\\u003cT extends [TFloating](/jvm/api_docs/java/org/tensorflow/types/family/TFloating)\\\u003e | Exponential linear unit. | | [Exponential](/jvm/api_docs/java/org/tensorflow/framework/activations/Exponential)\\\u003cT extends [TFloating](/jvm/api_docs/java/org/tensorflow/types/family/TFloating)\\\u003e | Exponential activation function. | | [HardSigmoid](/jvm/api_docs/java/org/tensorflow/framework/activations/HardSigmoid)\\\u003cT extends [TFloating](/jvm/api_docs/java/org/tensorflow/types/family/TFloating)\\\u003e | Hard sigmoid activation. | | [Linear](/jvm/api_docs/java/org/tensorflow/framework/activations/Linear)\\\u003cU extends [TNumber](/jvm/api_docs/java/org/tensorflow/types/family/TNumber)\\\u003e | Linear activation function (pass-through). | | [ReLU](/jvm/api_docs/java/org/tensorflow/framework/activations/ReLU)\\\u003cT extends [TNumber](/jvm/api_docs/java/org/tensorflow/types/family/TNumber)\\\u003e | Rectified Linear Unit(ReLU) activation. | | [SELU](/jvm/api_docs/java/org/tensorflow/framework/activations/SELU)\\\u003cT extends [TFloating](/jvm/api_docs/java/org/tensorflow/types/family/TFloating)\\\u003e | Scaled Exponential Linear Unit (SELU). | | [Sigmoid](/jvm/api_docs/java/org/tensorflow/framework/activations/Sigmoid)\\\u003cT extends [TFloating](/jvm/api_docs/java/org/tensorflow/types/family/TFloating)\\\u003e | Sigmoid activation. | | [Softmax](/jvm/api_docs/java/org/tensorflow/framework/activations/Softmax)\\\u003cT extends [TFloating](/jvm/api_docs/java/org/tensorflow/types/family/TFloating)\\\u003e | Softmax converts a real vector to a vector of categorical probabilities. | | [Softplus](/jvm/api_docs/java/org/tensorflow/framework/activations/Softplus)\\\u003cT extends [TFloating](/jvm/api_docs/java/org/tensorflow/types/family/TFloating)\\\u003e | Softplus activation function, `softplus(x) = log(exp(x) + 1)`. | | [Softsign](/jvm/api_docs/java/org/tensorflow/framework/activations/Softsign)\\\u003cT extends [TFloating](/jvm/api_docs/java/org/tensorflow/types/family/TFloating)\\\u003e | Softsign activation function, `softsign(x) = x / (abs(x) + 1)`. | | [Swish](/jvm/api_docs/java/org/tensorflow/framework/activations/Swish)\\\u003cT extends [TFloating](/jvm/api_docs/java/org/tensorflow/types/family/TFloating)\\\u003e | Swish activation function. | | [Tanh](/jvm/api_docs/java/org/tensorflow/framework/activations/Tanh)\\\u003cT extends [TFloating](/jvm/api_docs/java/org/tensorflow/types/family/TFloating)\\\u003e | Hyperbolic tangent activation function. | |||\n\nAbstract base class for Activations\n\n**Note:** The [ERROR(/#tf)]() attribute must be set prior to invoking the call method. See\n[ERROR(/#setTF(Ops))]() and the constructor [ERROR(/#Activation(Ops))]().\n\n\u003cbr /\u003e\n\n### Public Methods\n\n|--------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| abstract [Operand](/jvm/api_docs/java/org/tensorflow/Operand)\\\u003cT\\\u003e | [call](/jvm/api_docs/java/org/tensorflow/framework/activations/Activation#call(org.tensorflow.Operand\u003cT\u003e))([Operand](/jvm/api_docs/java/org/tensorflow/Operand)\\\u003cT\\\u003e input) Gets the calculation operation for the activation. |\n\n### Inherited Methods\n\nFrom class java.lang.Object \n\n|------------------|---------------------------|\n| boolean | equals(Object arg0) |\n| final Class\\\u003c?\\\u003e | getClass() |\n| int | hashCode() |\n| final void | notify() |\n| final void | notifyAll() |\n| String | toString() |\n| final void | wait(long arg0, int arg1) |\n| final void | wait(long arg0) |\n| final void | wait() |\n\nPublic Methods\n--------------\n\n#### public abstract [Operand](/jvm/api_docs/java/org/tensorflow/Operand)\\\u003cT\\\u003e\n**call**\n([Operand](/jvm/api_docs/java/org/tensorflow/Operand)\\\u003cT\\\u003e input)\n\nGets the calculation operation for the activation. \n\n##### Parameters\n\n| input | the input tensor |\n|-------|------------------|\n\n##### Returns\n\n- The operand for the activation"]]