-
I have a use case where I need to mark certain Module members as "constants" that shouldn't be included in the corresponding Record. In my case, such members are a custom struct containing multiple constant tensors. Currently, I see that:
Questions:
Alternative Design SuggestionIt might be more intuitive if:
Would love to hear if there are existing solutions I missed, or any guidance on implementing this functionality. |
Beta Was this translation helpful? Give feedback.
Answered by
laggui
Nov 18, 2024
Replies: 1 comment 4 replies
-
I think |
Beta Was this translation helpful? Give feedback.
4 replies
Answer selected by
med1844
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I think
Ignored<T>
should do the trick here. Also seems very similar in spirit to your suggestedConst<T>
.