SwiftCoreMLTools Documentation Beta

Structure Pooling

public struct Pooling: BaseLayer
%3 Pooling Pooling BaseLayer BaseLayer Pooling->BaseLayer

Conforms To

BaseLayer

Initializers

init(name:​input:​output:​pooling​Type:​kernel​Size:​stride:​padding​Type:​avg​Pool​Exclude​Padding:​global​Pooling:​)

public init(name: String, input: [String], output: [String], poolingType: PoolingType, kernelSize: [UInt], stride: [UInt], paddingType: PoolingPaddingType, avgPoolExcludePadding: Bool, globalPooling: Bool)

Properties

type

let type

name

let name: String

input

let input: [String]

output

let output: [String]

pooling​Type

let poolingType: PoolingType

kernel​Size

let kernelSize: [UInt]

stride

let stride: [UInt]

padding​Type

let paddingType: PoolingPaddingType

avg​Pool​Exclude​Padding

let avgPoolExcludePadding: Bool

global​Pooling

let globalPooling: Bool