Skip to content

Instantly share code, notes, and snippets.

View HugoGranstrom's full-sized avatar

Hugo Granström HugoGranstrom

View GitHub Profile
@HugoGranstrom
HugoGranstrom / adjoint_snippet.nim
Created November 1, 2021 19:04
Basic Register adjoint procs
import macros, macrocache, math
const pullbackFunctions* = CacheTable"lol"
proc `$`(t: CacheTable): string =
result = "Table("
for (key, val) in t.pairs:
result &= key & ": " & $val.repr & ", "
result &= ")"

Keybase proof

I hereby claim:

  • I am hugogranstrom on github.
  • I am hugogranstrom (https://keybase.io/hugogranstrom) on keybase.
  • I have a public key ASDxhRDe33ig_0M4qDe63CUCvT5cTCkZCWIrbdam9rFLGwo

To claim this, I am signing this object: