Skip to content

Interfaces and conventions for modifiers? #1716

Answered by kratsg
lhenkelm asked this question in Q&A
Discussion options

You must be logged in to vote

Thanks for the guidance here. Could you specify (or is it maybe already spelled out somewhere?) what the expected behavior of a general <modifier>_builder.collect method is? In the one built-in class that I think I understand (the shapefactor_builder) its just a means of preparing the contents of the masking tensor, but the way it is implemented (taking lots more data as inputs than needed for the mask, returning a dict with the mask-list rather than the list itself) makes me think it is just a special case of a more general pattern. It would be very helpful to have that general behavior stated explicitly.

We haven't figured out the general pattern yet. This is likely something that wil…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@lhenkelm
Comment options

@kratsg
Comment options

Answer selected by lhenkelm
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants