Dictionaries and tensor chain positions inputs #77
Replies: 3 comments 5 replies
-
@rlouf dunno if you monitor conversations ☝️ |
Beta Was this translation helpful? Give feedback.
-
For the sake of openness and also to keep records of the discussion, @rlouf and I had the following discussion offline The gist of the discussion is essentially contained in the following remarks:
|
Beta Was this translation helpful? Give feedback.
-
I tried to report the above with some objectivity. Now this is my personal opinion: in order to allow for different level of complexity in setting mass_matrices, several levels of inputs should be supported
then the ravelled mass matrix is the float times identity. Formally we would do
then the ravelled mass matrix is a diagonal formed of all the arrays in mass_matrix leaves. Formally we would do
then the ravelled mass matrix is a diagonal formed of all the arrays in mass_matrix leaves. Formally we would do
then the ravelled mass matrix is a diagonal formed of all the arrays in mass_matrix leaves. Formally we would do
The fourth item needs some ironing but hopefully you get the gist. Of course the goal is to make all this intuitive to the user. On the other hand having this kind of possible inputs has a clear advantage: it allows for low level optimisation down the line: e.g. matrix multiplications would become that more efficient is done block-wise, and even better if they reduce to component-wise multiplication. |
Beta Was this translation helpful? Give feedback.
-
Hi,
I have been thinking about it and I don't believe allowing users to pass unordered data structures to the state is a good idea. The reason is fairly simple: how is the program supposed to know which coordinate of the inverse mass matrix corresponds to which element of the position (this even makes the linear regression sampling test non-deterministic as the hashing may differ from run to run)? Similarly, if the position is a non-flat tensor, the internals of the unravel logic are not clear (to the outer logic) so as to which order the individual items of the positions state will be in.
I am not certain of what a good solution to this would be yet, but I thought it was worth raising the concern. Am I just fantasising or does this seem like a legit problem to you too?
Adrien
Beta Was this translation helpful? Give feedback.
All reactions