Module: tfl.linear_lib

View source on GitHub

Implementation of algorithms required for Linear layer.


assert_constraints(...): Asserts that weights satisfy constraints.

canonicalize_input_bounds(...): Converts string constant 'none' representing unspecified bound into None.

canonicalize_monotonicities(...): Converts string constants representing monotonicities into integers.

project(...): Applies constraints to weights.

verify_hyperparameters(...): Verifies that all given hyperparameters are consistent.