Skip to content

Instantly share code, notes, and snippets.

View EricCousineau-TRI's full-sized avatar

Eric Cousineau EricCousineau-TRI

View GitHub Profile
@EricCousineau-TRI
EricCousineau-TRI / asymkl.py
Created November 24, 2021 23:50 — forked from ariseff/asymkl.py
Visualizing KL divergence asymmetry with manim (community edition, 0.12.0)
%%manim -qm -v WARNING AsymKL
# https://gist.github.com/ariseff/cbcfd58d05abe7ec388bb4bbc9914ad9
"""
Source code for this visualization of KL divergence asymmetry:
https://twitter.com/ari_seff/status/1303741288911638530
KL computation is based on
https://tuananhle.co.uk/notes/reverse-forward-kl.html
This file has been truncated, but you can view the full file.
# callgrind format
version: 1
creator: callgrind-3.13.0
pid: 26178
cmd: ./bazel-bin/examples/Cassie/run_dircon_squatting --max_iter=1
part: 1
desc: I1 cache: 32768 B, 64 B, 8-way associative
desc: D1 cache: 32768 B, 64 B, 8-way associative