Decode_Block
- src.Decode_Block.decoded_block(x, layer_array)[source]
Define a block in a neural network architecture based on an input array specifying the characteristics of the layers within the block.
Parameters
- xtensor
Input tensor to the block.
- layer_arraynp.ndarray
Array of binary digits that encode the specifications of the block’s layers.
Returns
- layer_type_dict[layer_type_index](x)tensor
Output tensor after applying the block to the input.