ML Community Day is November 9! Join us for updates from TensorFlow, JAX, and more Learn more

Module: tfl.linear_layer

Layer which represents linear function. See class level comment.

This layer applies a linear transformation to the input tensor with an optional bias term. It supports monotonicity, monotonic dominance and fixed-norm constraints.


class LinearConstraints: Applies monotonicity constraints and normalization to TFL Linear layer.

LINEAR_LAYER_BIAS_NAME 'linear_layer_bias'
LINEAR_LAYER_KERNEL_NAME 'linear_layer_kernel'