Type layer_utils
Namespace tensorflow.python.keras.utils.layer_utils
Methods
- convert_dense_weights_data_format
- convert_dense_weights_data_format_dyn
- count_params
- count_params_dyn
- gather_non_trainable_weights
- gather_trainable_weights
- is_builtin_layer
- is_builtin_layer_dyn
Properties
Public static methods
void convert_dense_weights_data_format(object dense, object previous_feature_map_shape, string target_data_format)
object convert_dense_weights_data_format_dyn(object dense, object previous_feature_map_shape, ImplicitContainer<T> target_data_format)
int count_params(IEnumerable<object> weights)
object count_params_dyn(object weights)
Returns the static number of elements in a variable or tensor.
Returns
-
object
- Integer, the number of scalars in `x`. Example: ```python >>> kvar = K.zeros((2,3)) >>> K.count_params(kvar) 6 >>> K.eval(kvar) array([[ 0., 0., 0.], [ 0., 0., 0.]], dtype=float32) ```