- config = RevConfigWidth{1,false,false,(false, false, false, false, false),false,false}()
- func = Const{typeof(fixed_point!)}(ModelAutoGrad.fixed_point!)
- primal = EnzymeRules.augmented_primal(
- config,
- func,
- Const{Nothing},
- Duplicated(make_zero(state_init), d_res), # 输入
- Const(f!),
- Const(state_init),
- Duplicated(params, d_param) # 输出
- )
- tape = primal.tape
- EnzymeRules.reverse(
- config,
- func,
- Const{Nothing},
- tape,
- Duplicated(make_zero(state_init), d_res), # 输入
This file has been truncated. show original