Get input shape by index
Description
Gets the input size of the layer selected by the index given as input.
Documentation illustration (illustration unavailable in the archive).
Input parameters
Model in : model architecture.
index : integer, layer index.
Output parameters
Model out : model architecture.
input : cluster
name : string, name of layer.
index : integer, index of layer.
input_order : integer, order of entry.
input_shape : array, size of the input.
Documentation illustration (illustration unavailable in the archive).
Example
All these exemples are snippets PNG, you can drop these Snippet onto the block diagram and get the depicted code added to your VI (Do not forget to install Deep Learning library to run it).
Using the “Get Input Shape by index” function
Documentation illustration (illustration unavailable in the archive).
1 – Define Graph
We define two graphs with an input of different size and a Dense layer. We merge the two graphs to have only one and we add a last Dense to the graph. Each Dense layer is parameterized differently.
2 – Merge Function
We use the “Merge” function to merge the two graphs.
3 – Get Function
We use the “Get Input Shape by index” function to get input size of layer at index 3.
