Replies: 1 comment 3 replies
-
|
You need to write it in a vectorized manner like you would with numpy, not with 1000s of individual scalars or a python loop or whatever generated so many nodes. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
(note: happy to walk through this offline if I cannot explain super clearly here)
whic has:
Now, the
log_probis a likelihood which is the weighted sum of individual channels, that is,likelihood = [channel1, channel2, channel3, ..., cN], weights=[w1, ..., wN]is going to give usc1*w1 + c2*w2 + ... + cN*wN.The
log_probabove is this entire sum. We can also extract out those individual subgraphs, each of which takes ~1 minute to compile, but the total likelihood log prob takes over an hour to compile. Before I go down the route of throwing TONS of code, I'd like to start with the high-level thing first and understand if there's obvious things I can do to help debug or manage large graphs like these.Note, by compilation, I mean
Beta Was this translation helpful? Give feedback.
All reactions