(fn, is_property=True)
| 389 | Batchwise KL(d1 || d2) |
| 390 | """ |
| 391 | def delta(fn, is_property=True): |
| 392 | fn1 = getattr(d1, fn) |
| 393 | fn2 = getattr(d2, fn) |
| 394 | return (fn2 - fn1) if is_property else (fn2() - fn1()) |
| 395 | with ops.name_scope(name, "kl_beta_beta", values=[ |
| 396 | d1.concentration1, |
| 397 | d1.concentration0, |
no outgoing calls
no test coverage detected