remove generic parameter of DifferentiableFunction