Package org.jetbrains.kotlinx.dl.api.core.layer
Types
InitializerOperation
Link copied to clipboard
data class InitializerOperation(assign: Operand<Float>, initialValue: Operand<Float>)
Content copied to clipboard
A class that keeps information which allows to initialize KVariable.
KVariable
Link copied to clipboard
data class KVariable(name: String, shape: Shape, variable: Variable<Float>, initializerOperation: InitializerOperation, regularizer: Regularizer?)
Content copied to clipboard
A class that keeps information about a single parameter of the Layer.
NoGradients
Link copied to clipboard
interface NoGradients
Content copied to clipboard
Marker interface for layers that has no gradients for graph, described in forward method.
ParametrizedLayer
Link copied to clipboard
interface ParametrizedLayer
Content copied to clipboard
Represents a Layer with parameters.
TrainableLayer
Link copied to clipboard
Represents a ParametrizedLayer that can be trained.
Functions
initialize
Link copied to clipboard
Initializes this layers variables using provided initializer operands.
initializeVariables
Link copied to clipboard
Initializes variables for ParametrizedLayer instances using provided initializer operands.
Properties
isTrainable
Link copied to clipboard
Returns true if this Layer is trainable, false otherwise. Always returns false for layers not implementing TrainableLayer.
paramCount
Link copied to clipboard
Returns the number of parameters in this layer. If layer is not a ParametrizedLayer, returns zero.