Layer#

class usencrypt.ai.nn.layers.Layer(name=None)#

Base class for neural network layers.

Layer objects introduce various functionality components for usencrypt.ai.nn.NeuralNetwork models, and can be added to the top of a neural network’s architecture stack using its add() function.

Note

This is a base class and it is not intended to be called directly. Users are expected to instantiate each of its subclasses directly.

Available layers

Parameters

name (str) – The layer’s string identifier. Defaults to None

Variables
  • name (str) – The layer’s string identifier.

  • params (dict) – Dictionary containing all trainable parameters, if applicable.

  • params_non_trainable (dict) – Dictionary containing all non-trainable parameters, if applicable.

Examples

For examples on how to work with the neural network model, please refer to our corresponding tutorials.