FlattenLayer
Bases: Layer
A flatten layer.
Attributes:
| Name | Type | Description |
|---|---|---|
input_size |
ModelImageSize
|
Get the input_size of this layer. |
output_size |
int
|
Get the output_size of this layer. |
Source code in src/safeds/ml/nn/layers/_flatten_layer.py
input_size
¶
Get the input_size of this layer.
Returns:
| Name | Type | Description |
|---|---|---|
result |
ModelImageSize
|
The amount of values being passed into this layer. |
Raises:
| Type | Description |
|---|---|
ValueError
|
If the input_size is not yet set |
output_size
¶
Get the output_size of this layer.
Returns:
| Name | Type | Description |
|---|---|---|
result |
int
|
The number of neurons in this layer. |
Raises:
| Type | Description |
|---|---|
ValueError
|
If the input_size is not yet set |