Factory Class for common positional encoding methods #35
CCranney
started this conversation in
Numeric/Position Encoding Ideas
Replies: 0 comments
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.
-
Recent changes have made adding customized numeric or positional embedding methods easy via the numeric embedding manager class. This was done with the strategy design pattern. That being said, it may still be tedious for end users to create implementations of the desired method each time. I propose making a factory class that would take a simple string and create the desired class. That way the end user just need to indicate the type of positional encoding, and the factory will do the rest.
Beta Was this translation helpful? Give feedback.
All reactions