AvgPool2d

class AvgPool2d(poolHeight: Int, poolWidth: Int) : LayerSingleInput<AvgPool2d>

Average pool 2d

Downsamples the input, returning the average for each pool/window.

Constructors

AvgPool2d
Link copied to clipboard
fun AvgPool2d(poolHeight: Int, poolWidth: Int)

Functions

cpu
Link copied to clipboard
open override fun cpu(): Layer<AvgPool2d>
equals
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
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<AvgPool2d>
hashCode
Link copied to clipboard
open override fun hashCode(): Int
invoke
Link copied to clipboard
open operator override fun invoke(input: DTensor): DTensor
open operator override fun invoke(vararg inputs: DTensor): DTensor
to
Link copied to clipboard
open fun to(device: Device): OnDevice

Properties

poolHeight
Link copied to clipboard
val poolHeight: Int
poolWidth
Link copied to clipboard
val poolWidth: Int