Layer

interface Layer<T : Layer<T>> : OnDevice

Functions

cpu
Link copied to clipboard
open override fun cpu(): Layer<T>
getSingleInput
Link copied to clipboard
open fun getSingleInput(inputs: Array<out DTensor>): DTensor

Helper to check that the layer was called with a single input. Returns that input if successful, else errors.

gpu
Link copied to clipboard
open override fun gpu(): Layer<T>
invoke
Link copied to clipboard
abstract operator fun invoke(vararg inputs: DTensor): DTensor
to
Link copied to clipboard
open fun to(device: Device): OnDevice

Inheritors

Dropout
Link copied to clipboard
LayerSingleInput
Link copied to clipboard
TrainableLayer
Link copied to clipboard