How to do it...

  1. Run the flatten_conv_layer function with the preceding input parameter:
flatten_lay <- flatten_conv_layer(layer_conv2)
  1. Extract the flattened layer:
layer_flat <- flatten_lay$layer_flat
  1. Extract the number of (input) features generated for each image:
num_features <- flatten_lay$num_features
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset