Conv2d

open class Conv2d(filterShape: Shape, horizontalStride: Int, verticalStride: Int, activation: Activation, paddingStyle: Convolve.PaddingStyle, trainableFilter: TrainableTensor) : TrainableLayerSingleInput<Conv2d>

Constructors

Conv2d
Link copied to clipboard
fun Conv2d(filterShape: Shape, horizontalStride: Int, verticalStride: Int, activation: Activation = defaultActivation, padding: Convolve.Padding2D, random: Random, weightInit: (Shape, Random) -> FloatTensor = defaultInit)
Conv2d
Link copied to clipboard
fun Conv2d(filterShape: Shape, horizontalStride: Int, verticalStride: Int, activation: Activation = defaultActivation, paddingStyle: Convolve.PaddingStyle, random: Random, weightInit: (Shape, Random) -> FloatTensor = defaultInit)

Types

Companion
Link copied to clipboard
object Companion

Functions

cpu
Link copied to clipboard
open override fun cpu(): Conv2d
equals
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
extractTangent
Link copied to clipboard
open override fun extractTangent(output: DTensor, extractor: (DTensor, DTensor) -> DTensor): TrainableComponent.Companion.Tangent
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(): Conv2d
hashCode
Link copied to clipboard
open override fun hashCode(): Int
invoke
Link copied to clipboard
open operator override fun invoke(input: DTensor): DTensor
abstract operator fun invoke(vararg inputs: DTensor): DTensor
load
Link copied to clipboard
open override fun load(from: ByteBuffer): Conv2d
store
Link copied to clipboard
open override fun store(into: ByteBuffer): ByteBuffer
to
Link copied to clipboard
open fun to(device: Device): OnDevice
trainingStep
Link copied to clipboard
open override fun trainingStep(optim: Optimizer<*>, tangent: Trainable.Tangent): Conv2d
withTrainables
Link copied to clipboard
open override fun withTrainables(trainables: List<Trainable<*>>): Conv2d
wrap
Link copied to clipboard
open override fun wrap(wrapper: Wrapper): Conv2d

The wrap function should return the same static type it is declared on.

Properties

activation
Link copied to clipboard
val activation: Activation
filterShape
Link copied to clipboard
val filterShape: Shape
horizontalStride
Link copied to clipboard
val horizontalStride: Int
paddingStyle
Link copied to clipboard
val paddingStyle: Convolve.PaddingStyle
trainables
Link copied to clipboard
open override val trainables: List<Trainable<*>>
verticalStride
Link copied to clipboard
val verticalStride: Int

Inheritors

Conv2dWithSamePadding
Link copied to clipboard