Sequential
class Sequential(layers: List<Layer<*>>) : TrainableLayerSingleInput<Sequential>
Content copied to clipboard
Constructors
Sequential
Link copied to clipboard
Functions
cpu
Link copied to clipboard
extract Tangent
Link copied to clipboard
open override fun extractTangent(output: DTensor, extractor: (DTensor, DTensor) -> DTensor): TrainableComponent.Companion.Tangent
Content copied to clipboard
get Single Input
Link copied to clipboard
Helper to check that the layer was called with a single input. Returns that input if successful, else errors.
gpu
Link copied to clipboard
load
Link copied to clipboard
store
Link copied to clipboard
training Step
Link copied to clipboard
open override fun trainingStep(optim: Optimizer<*>, tangent: Trainable.Tangent): Sequential
Content copied to clipboard
with Trainables
Link copied to clipboard
open override fun withTrainables(trainables: List<Trainable<*>>): Sequential
Content copied to clipboard
wrap
Link copied to clipboard
The wrap function should return the same static type it is declared on.