ConvKernel

class ConvKernel<T : DType, V>(builder: TensorBuilder<T, V>)(source)

Creates convolution kernel tensors

Constructors

Link copied to clipboard
constructor(builder: TensorBuilder<T, V>)

Functions

Link copied to clipboard
fun conv3x3(outputChannels: Int, inputChannels: Int): ShapeBuilder<T, V>

Creates a 3x3 convolution kernel (most common)

Link copied to clipboard
fun conv5x5(outputChannels: Int, inputChannels: Int): ShapeBuilder<T, V>

Creates a 5x5 convolution kernel

Link copied to clipboard
fun oihw(outputChannels: Int, inputChannels: Int, kernelHeight: Int, kernelWidth: Int): ShapeBuilder<T, V>

Creates a 4D convolution kernel in OIHW format (Output, Input, Height, Width)

Link copied to clipboard
fun pointwise(outputChannels: Int, inputChannels: Int): ShapeBuilder<T, V>

Creates a 1x1 convolution kernel (pointwise convolution)

Link copied to clipboard
fun square(outputChannels: Int, inputChannels: Int, kernelSize: Int): ShapeBuilder<T, V>

Creates a square convolution kernel