public class Bias extends BaseAccumulation
applyFinalTransform, finalResult, finalResultComplexextraArgs, n, numProcessed, passThrough, x, y, z| Constructor and Description |
|---|
Bias() |
Bias(INDArray x) |
Bias(INDArray x,
INDArray y) |
Bias(INDArray x,
INDArray y,
INDArray z,
long n) |
Bias(INDArray x,
INDArray y,
long n) |
| Modifier and Type | Method and Description |
|---|---|
double |
combineSubResults(double first,
double second)
Combine sub-results, when the Accumulation operation is split and executed in
parallel.
Sometimes this is the same as the update operation (i.e., in sum operation), but often it is not (for example, in L2 norm, sqrt(1/n * sum_i x_i^2). |
float |
combineSubResults(float first,
float second) |
IComplexNumber |
combineSubResults(IComplexNumber first,
IComplexNumber second) |
void |
exec()
Execute the op if its pass through (not needed most of the time)
|
void |
exec(int... dimension)
Exec along each dimension
|
void |
init(INDArray x,
INDArray y,
INDArray z,
long n)
Initialize the operation based on the parameters
|
boolean |
isPassThrough()
Returns whether the op should be executed or not (through the executioner)
|
String |
name()
The name of this operation
|
double |
op(double origin)
Transform an individual element
|
float |
op(float origin)
Transform an individual element
|
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
|
double |
update(double accum,
double x)
Do one accumulation update for a single-argument accumulation, given the
current accumulation value and another value to be processed/accumulated
|
double |
update(double accum,
double x,
double y)
Do an accumulation update for a pair-wise (op(x,y)) accumulation, given the
current accumulation value and a pair of values to be processed/accumulated
|
float |
update(float accum,
float x) |
float |
update(float accum,
float x,
float y) |
IComplexNumber |
update(IComplexNumber accum,
double x)
Complex update.
|
IComplexNumber |
update(IComplexNumber accum,
double x,
double y)
Complex update.
|
IComplexNumber |
update(IComplexNumber accum,
IComplexNumber x)
Complex update.
|
IComplexNumber |
update(IComplexNumber accum,
IComplexNumber x,
double y)
Complex update.
|
IComplexNumber |
update(IComplexNumber accum,
IComplexNumber x,
IComplexNumber y)
Complex update.
|
IComplexNumber |
zeroComplex()
Complex initial value
|
applyFinalTransform, calculateFinalResult, calculateFinalResult, currentResult, getAndSetFinalResult, getAndSetFinalResult, getAndSetFinalResult, getFinalResult, getFinalResultComplex, noOp, numProcessed, op, op, setApplyFinalTransform, setFinalResult, setFinalResultComplex, setZ, zeroDouble, zeroFloatextraArgs, extraArgsBuff, extraArgsDataBuff, isExecSpecial, n, setN, setX, setY, toString, x, y, zclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitextraArgs, extraArgsBuff, extraArgsDataBuff, isExecSpecial, n, setN, setX, setY, x, y, zpublic Bias()
public Bias(INDArray x)
public int opNum()
Oppublic String name()
Oppublic IComplexNumber op(IComplexNumber origin, IComplexNumber other)
Opop in interface Accumulationop in interface Opop in class BaseAccumulationorigin - the origin numberother - the other numberpublic IComplexNumber op(IComplexNumber origin, float other)
Opop in interface Accumulationop in interface Opop in class BaseAccumulationorigin - the origin numberother - the other numberpublic IComplexNumber op(IComplexNumber origin, double other)
Opop in interface Accumulationop in interface Opop in class BaseAccumulationorigin - the origin numberother - the other numberpublic Op opForDimension(int index, int dimension)
Opindex - the index of the op to iterate overdimension - the dimension to ge the input forpublic Op opForDimension(int index, int... dimension)
Opindex - the index of the op to iterate overdimension - the dimension to ge the input forpublic IComplexNumber op(IComplexNumber origin)
Opop in interface Accumulationop in interface Opop in class BaseAccumulationorigin - the origin elementpublic double op(double origin)
Opop in interface Opop in class BaseAccumulationorigin - the origin elementpublic float op(float origin)
Opop in interface Opop in class BaseAccumulationorigin - the origin elementpublic double update(double accum,
double x)
Accumulationaccum - The current accumulation valuex - The next/new value to be processed/accumulatedpublic double update(double accum,
double x,
double y)
Accumulationaccum - The current accumulation valuex - The next/new x value to be processed/accumulatedy - The next/new y value to be processed/accumulatedpublic float update(float accum,
float x)
Accumulation.update(double, double)public float update(float accum,
float x,
float y)
public IComplexNumber update(IComplexNumber accum, double x)
AccumulationAccumulation.update(double, double)public IComplexNumber update(IComplexNumber accum, double x, double y)
Accumulationpublic IComplexNumber update(IComplexNumber accum, IComplexNumber x)
AccumulationAccumulation.update(double, double)public IComplexNumber update(IComplexNumber accum, IComplexNumber x, IComplexNumber y)
Accumulationpublic IComplexNumber update(IComplexNumber accum, IComplexNumber x, double y)
Accumulationpublic IComplexNumber zeroComplex()
AccumulationzeroComplex in interface AccumulationzeroComplex in class BaseAccumulationpublic void init(INDArray x, INDArray y, INDArray z, long n)
Opinit in interface Opinit in class BaseAccumulationx - the inputy - the pairwise transform ndarrayz - the resulting ndarrayn - the number of elementspublic double combineSubResults(double first,
double second)
AccumulationcombineSubResults in interface AccumulationcombineSubResults in class BaseAccumulationfirst - The first sub-value to be combinedsecond - The second sub-value to be combinedpublic float combineSubResults(float first,
float second)
combineSubResults in interface AccumulationcombineSubResults in class BaseAccumulationAccumulation.combineSubResults(double, double)public IComplexNumber combineSubResults(IComplexNumber first, IComplexNumber second)
combineSubResults in interface AccumulationcombineSubResults in class BaseAccumulationAccumulation.combineSubResults(double, double)public boolean isPassThrough()
OpisPassThrough in interface OpisPassThrough in class BaseOppublic void exec()
OpCopyright © 2016. All Rights Reserved.