If EnzymeRules.inactive() is defined, does the Enzyme.jl operation still take place?

Generally marking it as inactive means most Enzyme errors will go away (since we don’t need to differentiate it).

Not all may go away, however. For example if Julia generates some weird GC we don’t tunderstand Enzyme will throw an error rather than risk a segfault.

So it depends – what error are you seeing?