@Beta public class Softmax extends CompositeTensorFunction
Modifier and Type | Field and Description |
---|---|
private TensorFunction |
argument |
private String |
dimension |
Constructor and Description |
---|
Softmax(TensorFunction argument,
String dimension) |
Modifier and Type | Method and Description |
---|---|
List<TensorFunction> |
functionArguments()
Returns the function arguments of this node in the order they are applied
|
TensorFunction |
replaceArguments(List<TensorFunction> arguments)
Returns a copy of this tensor function with the arguments replaced by the given list of arguments.
|
PrimitiveTensorFunction |
toPrimitive()
Translate this function - and all of its arguments recursively -
to a tree of primitive functions only.
|
String |
toString(ToStringContext context)
Return a string representation of this context.
|
evaluate
evaluate, toString
private final TensorFunction argument
private final String dimension
public Softmax(TensorFunction argument, String dimension)
public List<TensorFunction> functionArguments()
TensorFunction
functionArguments
in class TensorFunction
public TensorFunction replaceArguments(List<TensorFunction> arguments)
TensorFunction
replaceArguments
in class TensorFunction
public PrimitiveTensorFunction toPrimitive()
TensorFunction
toPrimitive
in class TensorFunction
public String toString(ToStringContext context)
TensorFunction
toString
in class TensorFunction
context
- a context which must be passed to all nexted functions when requesting the string valueCopyright © 2017. All rights reserved.