encodeWithOptimizer(_:to:)
This method is part of the conformance. It doesn’t encode anything since the transformer is pre-defined, so don’t call it.
Declaration
func encodeWithOptimizer(_ transformer: Transformer, to encoder: inout any EstimatorEncoder) throws