LostTech.TensorFlow : API Documentation

Type layer_utils

Namespace tensorflow.python.keras.utils.layer_utils

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) ```

IList<object> gather_non_trainable_weights(object trainable, object sub_layers, object extra_variables)

IList<object> gather_trainable_weights(object trainable, object sub_layers, object extra_variables)

bool is_builtin_layer(object layer)

object is_builtin_layer_dyn(object layer)

Public properties

PythonFunctionContainer convert_dense_weights_data_format_fn get;

PythonFunctionContainer count_params_fn get;

PythonFunctionContainer gather_non_trainable_weights_fn get;

PythonFunctionContainer gather_trainable_weights_fn get;

PythonFunctionContainer is_builtin_layer_fn get;