Skip to contents

Convolutional feature-map size (Geron Ch 14, morie.fn grfmp)

Usage

morie_geron_feature_map_dim(
  H_out,
  W_out,
  C_out,
  bytes_per_value = 4,
  batch_size = 1
)

Arguments

H_out, W_out, C_out

Positive output dimensions.

bytes_per_value

Bytes per stored activation.

batch_size

Positive batch size.

Value

List with dim, bytes, megabytes, batch_bytes, batch_megabytes, shape.

Examples

morie_geron_feature_map_dim(28, 28, 64, bytes_per_value = 4,
    batch_size = 32)
#> $dim
#> [1] 50176
#> 
#> $bytes
#> [1] 200704
#> 
#> $megabytes
#> [1] 0.1914062
#> 
#> $batch_bytes
#> [1] 6422528
#> 
#> $batch_megabytes
#> [1] 6.125
#> 
#> $shape
#> [1] 28 28 64
#> 
#> $estimate
#> [1] 50176
#> 
#> $n
#> [1] 50176
#>