Skip to main content

install_with

Function install_with 

Source
pub fn install_with(ctx: &SessionContext, analyzer: DdxAnalyzer)
Expand description

install with a caller-configured analyzer — use this to pick up custom differentiation rules (see DdxAnalyzer::with_engine).

Your own UDFs need no registration with ddx: a function called inside a marker is read off the bound expression when the derivative is re-planned, so grad(my_udf(y) * x, x) works whenever my_udf was registered, before or after this call.