array_concatenate
ArrayConcatenateLayer ¤
ArrayConcatenateLayer(
name=None,
input_dtype=None,
output_dtype=None,
axis=-1,
auto_broadcast=False,
**kwargs
)
Bases: BaseLayer
Performs a concatenation of the input tensors.
Initialises the ArrayConcatenateLayer layer.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
name |
Optional[str]
|
The name of the layer. Defaults to |
None
|
input_dtype |
Optional[str]
|
The dtype to cast the input to. Defaults to |
None
|
output_dtype |
Optional[str]
|
The dtype to cast the output to. Defaults to |
None
|
axis |
int
|
Axis to concatenate on. Defaults to -1. |
-1
|
auto_broadcast |
bool
|
If |
False
|
Source code in src/kamae/keras/core/layers/array_concatenate.py
36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 | |
compatible_dtypes
property
¤
compatible_dtypes
get_config ¤
get_config()
Gets the configuration of the ArrayConcatenate layer. Used for saving and loading from a model.
Specifically, adds the axis and auto_broadcast to the config.
Returns:
| Type | Description |
|---|---|
Dict[str, Any]
|
Dictionary of the configuration of the layer. |
Source code in src/kamae/keras/core/layers/array_concatenate.py
132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 | |