-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
batch_assign: Dict[List] vs List[Dict] #133
Comments
We need to split them up because, at the builder phase, we can't know what field belongs to a I guess we can check against the register size but this becomes problematic if the size of the batch just happens to be the size of the register. |
I don't understand what you mean here, you mean with regards to the length of the parameters? |
Yes
so my point is
but I see that |
I think the config file captures the more complicated scans. constructing a Edit: Especially when you are dealing with long names for parameters, like |
We could provide something like something like: .batch_assign(a = a_list, b = b_list)
.batch_assign(c = c_list) would lower to a loop like: for a,b in zip(a_list,b_list):
for c in c_list:
vars = {'a':a, 'b':b, 'c':c} Edit: Ideally the two-dimensional structure will also move down to the task level as well so it is easy to do the analysis without having to know how to unravel the nested loop. |
Originally posted by @Roger-luo in #131 (comment)
@weinbe58 let's move the discussion to here so we don't block that PR, I think we should merge the PR first, and make this design decision later.
The text was updated successfully, but these errors were encountered: