Class defining a neural network topology - a set of layers and connection between them - on the training stage.
More...
◆ Topology() [1/2]
◆ Topology() [2/2]
Constructs neural network topology by copying layers of another topology
- Parameters
-
[in] | t | Neural network topology to be used as the source to initialize layers |
◆ add() [1/2]
size_t add |
( |
const layers::LayerIfacePtr & |
layer | ) |
|
|
inline |
Adds an element to the collection of layers and assigns the next available id to it
- Parameters
-
- Returns
- Index of the element
◆ add() [2/2]
size_t add |
( |
const Topology & |
topologyBlock, |
|
|
size_t & |
startIndex |
|
) |
| |
|
inline |
Adds a block of elements to the collection of layers
- Parameters
-
[in] | topologyBlock | Block to add |
[in] | startIndex | Index of the first element of the block in topology |
- Returns
- Index of the last element of the block in topology
◆ addNext()
Adds next layer to the given layer
- Parameters
-
[in] | index | Index of the layer to add next layer |
[in] | next | Index of the next layer |
- Deprecated:
- This item will be removed in a future release. Use Topology::get instead. Following with LayerDescriptor::addNext method.
- Returns
- Status of computations
◆ clear()
Clears a topology: removes all layer descriptors and sets size to 0
- Returns
- Status of computations
◆ get() [1/2]
Element access
- Parameters
-
[in] | index | Index of an accessed element |
- Returns
- Reference to the element
◆ get() [2/2]
Const element access
- Parameters
-
[in] | index | Index of an accessed element |
- Returns
- Reference to the element
◆ operator[]() [1/2]
Element access
- Parameters
-
[in] | index | Index of an accessed element |
- Returns
- Reference to the element
◆ operator[]() [2/2]
Const element access
- Parameters
-
[in] | index | Index of an accessed element |
- Returns
- Reference to the element
◆ push_back()
size_t push_back |
( |
const layers::LayerIfacePtr & |
layer | ) |
|
|
inline |
Adds an element to the collection of layers and assigns the next available id to it
- Parameters
-
- Returns
- Index of the element
◆ size()
Number of layers in the topology
- Returns
- Size of the collection
The documentation for this class was generated from the following file: