Skip to content

Instantly share code, notes, and snippets.

View simeonschaub's full-sized avatar

Simeon David Schaub simeonschaub

  • KIT
  • Karlsruhe, Germany
  • 20:47 (UTC +02:00)
View GitHub Profile
using Cassette, Test
using Cassette: @context, enabletagging, @overdub, overdub, recurse,
hasmetadata, metadata, tag, untag
using ChainRules: frule, Zero, extern
@context DiffCtx
Cassette.metadatatype(::Type{<:DiffCtx}, ::Type{T}) where {T<:Real} = T
function D(f, x)