Open
Description
is there a way to create a copy of an existing model with a new, flat parameters vector, without mutating, and without using restructure
? the reason for the latter two is because i need the higher order derivatives wrt the flat parameter vector.
i've been fumbling about different threads (#1979 was particularly relevant) to find a solution without success, and would appreciate any pointers!