public class SoftMax extends BaseTransformOp
extraArgs, extraArgz, n, numProcessed, passThrough, x, y, z
Constructor and Description |
---|
SoftMax() |
SoftMax(INDArray x) |
SoftMax(INDArray x,
INDArray z) |
SoftMax(INDArray x,
INDArray y,
INDArray z) |
SoftMax(INDArray x,
INDArray y,
INDArray z,
long n) |
SoftMax(INDArray x,
INDArray z,
long n) |
Modifier and Type | Method and Description |
---|---|
TransformOp |
derivative()
The derivative operation for this op
|
void |
exec()
Execute the op if its pass through (not needed most of the time)
|
void |
exec(int... dimensions)
Exec along each dimension
|
void |
init(INDArray x,
INDArray y,
INDArray z,
long n)
Initialize the operation based on the parameters
|
boolean |
isExecSpecial()
Whether the executioner
needs to do a special call or not
|
String |
name()
The name of this operation
|
double |
op(double origin)
Transform an individual element
|
double |
op(double origin,
double other)
Pairwise op (applicable with an individual element in y)
|
float |
op(float origin)
Transform an individual element
|
float |
op(float origin,
float other)
Pairwise op (applicable with an individual element in y)
|
IComplexNumber |
op(IComplexNumber origin)
Transform an individual element
|
IComplexNumber |
op(IComplexNumber origin,
double other)
Pairwise op (applicable with an individual element in y)
|
IComplexNumber |
op(IComplexNumber origin,
float other)
Pairwise op (applicable with an individual element in y)
|
IComplexNumber |
op(IComplexNumber origin,
IComplexNumber other)
Pairwise op (applicable with an individual element in y)
|
Op |
opForDimension(int index,
int... dimension)
A copy of this operation for a particular dimension of the input
|
Op |
opForDimension(int index,
int dimension)
A copy of this operation for a particular dimension of the input
|
int |
opNum()
An op number
|
extraArgs, extraArgsBuff, extraArgsDataBuff, getOpType, isPassThrough, n, numProcessed, setN, setX, setY, setZ, toString, x, y, z
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
extraArgs, extraArgsBuff, extraArgsDataBuff, isPassThrough, n, numProcessed, setN, setX, setY, setZ, x, y, z
public SoftMax()
public SoftMax(INDArray x)
public int opNum()
Op
public boolean isExecSpecial()
Op
isExecSpecial
in interface Op
isExecSpecial
in class BaseOp
public String name()
Op
public IComplexNumber op(IComplexNumber origin, double other)
Op
origin
- the origin numberother
- the other numberpublic IComplexNumber op(IComplexNumber origin, float other)
Op
origin
- the origin numberother
- the other numberpublic IComplexNumber op(IComplexNumber origin, IComplexNumber other)
Op
origin
- the origin numberother
- the other numberpublic float op(float origin, float other)
Op
origin
- the origin numberother
- the other numberpublic double op(double origin, double other)
Op
origin
- the origin numberother
- the other numberpublic double op(double origin)
Op
origin
- the origin elementpublic float op(float origin)
Op
origin
- the origin elementpublic IComplexNumber op(IComplexNumber origin)
Op
origin
- the origin elementpublic TransformOp derivative()
TransformOp
derivative
in interface TransformOp
derivative
in class BaseTransformOp
public Op opForDimension(int index, int dimension)
Op
index
- the index of the op to iterate overdimension
- the dimension to ge the input forpublic Op opForDimension(int index, int... dimension)
Op
index
- the index of the op to iterate overdimension
- the dimension to ge the input forpublic void exec()
Op
public void init(INDArray x, INDArray y, INDArray z, long n)
Op
Copyright © 2017. All Rights Reserved.