Get keras model input image width
Source:R/zzz_keras_wrapper.R
KERAS_WRAPPER-cash-get_input_width.Rd
This function get the input image width (the input shape is (batch_size, height, width, channels)) of a keras model.
Examples
keras_model <- try(get_keras_model("vss_phn_32"))
if (!inherits(keras_model, "try-error")) {
keras_wrapper(keras_model)$get_input_width()
}
#> [1] 32