Boolean, whether the layer's variables should be trainable.
name
String name of the layer.
dtype
Default dtype of the layer's weights (default of None means use the
type of the first input).
Read-only properties:
name: The name of the layer (string).
dtype: Default dtype of the layer's weights (default of None means use the
type of the first input).
trainable_variables: List of trainable variables.
non_trainable_variables: List of non-trainable variables.
variables: List of all variables of this layer, trainable and
non-trainable.
updates: List of update ops of this layer.
losses: List of losses added by this layer.
trainable_weights: List of variables to be included in backprop.
non_trainable_weights: List of variables that should not be
included in backprop.
weights: The concatenation of the lists trainable_weights and
non_trainable_weights (in this order).
Mutable properties:
trainable: Whether the layer should be trained (boolean).
input_spec: Optional (list of) InputSpec object(s) specifying the
constraints on inputs that can be accepted by the layer.
[null,null,["Last updated 2020-10-01 UTC."],[],[],null,["# tf.layers.Layer\n\n\u003cbr /\u003e\n\n|---------------------------------------------------------------------------------------------------------------------------|\n| [View source on GitHub](https://github.com/tensorflow/tensorflow/blob/v1.15.0/tensorflow/python/layers/base.py#L158-L579) |\n\nBase layer class.\n\nInherits From: [`Layer`](../../tf/keras/layers/Layer)\n\n#### View aliases\n\n\n**Compat aliases for migration**\n\nSee\n[Migration guide](https://www.tensorflow.org/guide/migrate) for\nmore details.\n\n[`tf.compat.v1.layers.Layer`](/api_docs/python/tf/compat/v1/layers/Layer)\n\n\u003cbr /\u003e\n\n tf.layers.Layer(\n trainable=True, name=None, dtype=None, **kwargs\n )\n\nIt is considered legacy, and we recommend the use of [`tf.keras.layers.Layer`](../../tf/keras/layers/Layer)\ninstead.\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Arguments --------- ||\n|-------------|-------------------------------------------------------------------------------------------------|\n| `trainable` | Boolean, whether the layer's variables should be trainable. |\n| `name` | String name of the layer. |\n| `dtype` | Default dtype of the layer's weights (default of `None` means use the type of the first input). |\n\n\u003cbr /\u003e\n\nRead-only properties:\nname: The name of the layer (string).\ndtype: Default dtype of the layer's weights (default of `None` means use the\ntype of the first input).\ntrainable_variables: List of trainable variables.\nnon_trainable_variables: List of non-trainable variables.\nvariables: List of all variables of this layer, trainable and\nnon-trainable.\nupdates: List of update ops of this layer.\nlosses: List of losses added by this layer.\ntrainable_weights: List of variables to be included in backprop.\nnon_trainable_weights: List of variables that should not be\nincluded in backprop.\nweights: The concatenation of the lists trainable_weights and\nnon_trainable_weights (in this order).\n\n#### Mutable properties:\n\n- **`trainable`**: Whether the layer should be trained (boolean).\n- **`input_spec`** : Optional (list of) `InputSpec` object(s) specifying the constraints on inputs that can be accepted by the layer.\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Attributes ---------- ||\n|--------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `graph` | DEPRECATED FUNCTION \u003cbr /\u003e | **Warning:** THIS FUNCTION IS DEPRECATED. It will be removed in a future version. Instructions for updating: Stop using this property because tf.layers layers no longer track their graph. |\n| `scope_name` | \u003cbr /\u003e |\n\n\u003cbr /\u003e"]]