Class: Qoa::Layers::PoolingLayer
- Defined in:
- lib/qoa/layers/pooling_layer.rb
Instance Attribute Summary collapse
-
#pool_size ⇒ Object
readonly
Returns the value of attribute pool_size.
-
#stride ⇒ Object
readonly
Returns the value of attribute stride.
Attributes inherited from Layer
#input_size, #output_size, #weights
Instance Method Summary collapse
-
#initialize(input_size, output_size, pool_size, stride = 1) ⇒ PoolingLayer
constructor
A new instance of PoolingLayer.
Methods inherited from Layer
Constructor Details
#initialize(input_size, output_size, pool_size, stride = 1) ⇒ PoolingLayer
6 7 8 9 10 |
# File 'lib/qoa/layers/pooling_layer.rb', line 6 def initialize(input_size, output_size, pool_size, stride = 1) super(input_size, output_size) @pool_size = pool_size @stride = stride end |
Instance Attribute Details
#pool_size ⇒ Object (readonly)
Returns the value of attribute pool_size.
4 5 6 |
# File 'lib/qoa/layers/pooling_layer.rb', line 4 def pool_size @pool_size end |
#stride ⇒ Object (readonly)
Returns the value of attribute stride.
4 5 6 |
# File 'lib/qoa/layers/pooling_layer.rb', line 4 def stride @stride end |