Dense

class tf_encrypted.layers.dense.Dense(input_shape: List[int], out_features: int, transpose_input=False, transpose_weight=False)[source]

Standard dense linear layer including bias.

Parameters:
  • in_features (int) – number of input features
  • out_features (int) – number of output neurons for the layer
backward(d_y, learning_rate)[source]

The backward pass for training.

forward(x)[source]

Forward pass for inference

get_output_shape()[source]

Returns the layer’s output shape