public void Process(Gpu gpu, Property.PoolingProperty.PoolType type, BufferField input, int reduction, int expansion, ref BufferField map, ref BufferField output) { switch (type) { case Property.PoolingProperty.PoolType.Max: Max(gpu, input, reduction, expansion, ref map, ref output); break; case Property.PoolingProperty.PoolType.Min: Min(gpu, input, reduction, expansion, ref map, ref output); break; case Property.PoolingProperty.PoolType.Average: Average(gpu, input, reduction, expansion, ref map, ref output); break; default: break; } }
public void Process(Gpu gpu, Property.PoolingProperty.PoolType type, BufferField sigma, BufferField map, int reduction, int expansion, ref BufferField propagater) { switch (type) { case Property.PoolingProperty.PoolType.Max: Max(gpu, sigma, map, reduction, expansion, ref propagater); break; case Property.PoolingProperty.PoolType.Min: Min(gpu, sigma, map, reduction, expansion, ref propagater); break; case Property.PoolingProperty.PoolType.Average: Average(gpu, sigma, map, reduction, expansion, ref propagater); break; default: break; } }