Package deepboof.impl.forward.standard
Class FunctionLinear_F64
java.lang.Object
deepboof.impl.forward.standard.BaseFunction<Tensor_F64>
deepboof.impl.forward.standard.FunctionLinear_F64
- All Implemented Interfaces:
FunctionLinear<Tensor_F64>,Function<Tensor_F64>
public class FunctionLinear_F64 extends BaseFunction<Tensor_F64> implements FunctionLinear<Tensor_F64>
Implementation of
FunctionLinear for Tensor_F64.-
Field Summary
Fields inherited from class deepboof.impl.forward.standard.BaseFunction
miniBatchSize, parameters, shapeInput, shapeOutput, shapeParameters -
Constructor Summary
Constructors Constructor Description FunctionLinear_F64(int numberOfOutputs) -
Method Summary
Modifier and Type Method Description void_forward(Tensor_F64 input, Tensor_F64 output)void_initialize()void_setParameters(List<Tensor_F64> parameters)static voidforwards(Tensor_F64 input, Tensor_F64 output, Tensor_F64 weight, Tensor_F64 bias, int miniBatchSize, int D, int M)intgetNumberOfOutputs()Returns the number of output elements.Class<Tensor_F64>getTensorType()Returns the type of tensor it can processMethods inherited from class deepboof.impl.forward.standard.BaseFunction
forward, getOutputShape, getParameters, getParameterShapes, initialize, setParametersMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface deepboof.Function
getOutputShape, getParameters, getParameterShapes, initializeMethods inherited from interface deepboof.forward.FunctionLinear
forward, setParameters
-
Field Details
-
D
protected int D -
M
protected int M
-
-
Constructor Details
-
FunctionLinear_F64
public FunctionLinear_F64(int numberOfOutputs)
-
-
Method Details
-
_forward
- Specified by:
_forwardin classBaseFunction<Tensor_F64>
-
forwards
public static void forwards(Tensor_F64 input, Tensor_F64 output, Tensor_F64 weight, Tensor_F64 bias, int miniBatchSize, int D, int M) -
_initialize
public void _initialize()- Specified by:
_initializein classBaseFunction<Tensor_F64>
-
_setParameters
- Specified by:
_setParametersin classBaseFunction<Tensor_F64>
-
getNumberOfOutputs
public int getNumberOfOutputs()Description copied from interface:FunctionLinearReturns the number of output elements. This is the variable M.- Specified by:
getNumberOfOutputsin interfaceFunctionLinear<Tensor_F64>- Returns:
- Number of output elements.
-
getTensorType
Description copied from interface:FunctionReturns the type of tensor it can process- Specified by:
getTensorTypein interfaceFunction<Tensor_F64>- Returns:
- Type of tensor
-