-
Notifications
You must be signed in to change notification settings - Fork 77
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
[ GPU ] split kernel registration from forwarding function in rmsnorm_layer_cl
#2804
Changes from 2 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1075,6 +1075,19 @@ class BNPARAMS_BETA_INIT final : public EnumProperty<InitializerInfo> { | |
static constexpr const char *key = "beta_initializer"; | ||
}; | ||
|
||
/** | ||
* @brief RMS_NORM_GAMMA_INIT Initialization Enumeration Information | ||
*/ | ||
class RMS_NORM_GAMMA_INIT final : public EnumProperty<InitializerInfo> { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It is quite strange to use capital letters here. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Oh I checked BNPPARAMS_*_INIT only. |
||
public: | ||
/** | ||
* @brief Construct a RMS_NORM_GAMMA_INIT object | ||
*/ | ||
RMS_NORM_GAMMA_INIT(Initializer value = Initializer::ONES) { set(value); }; | ||
using prop_tag = enum_class_prop_tag; | ||
static constexpr const char *key = "gamma_initializer"; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It seems that there is a duplication of key value ("gamma_initializer") for BNPARAMS_GAMMA_INIT. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Thank you! That's my bad. It must be critical if it wasn't fixed. I will update it. |
||
}; | ||
|
||
/** | ||
* @brief Enumeration of tensor regularization type | ||
*/ | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it might be good to throw an error when fp16 is not enabled!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for the comment. I updated it :)