-
Notifications
You must be signed in to change notification settings - Fork 91
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
[SYCLomatic]Enable migration for CUBLASLT_MATMUL_DESC_BIAS_DATA_TYPE #2385
base: SYCLomatic
Are you sure you want to change the base?
Conversation
@@ -133,7 +134,7 @@ class matmul_desc_t { | |||
}; | |||
|
|||
matmul_desc_t(compute_type compute_type, library_data_t scale_type) | |||
: _compute_type(compute_type), _scale_type(scale_type) {} | |||
: _compute_type(compute_type), _scale_type(scale_type), _bias_type(bias_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.
There is no bias_type
in the constructor parameter, so you can give a default value directly:
: _compute_type(compute_type), _scale_type(scale_type), _bias_type(bias_type) {} | |
: _compute_type(compute_type), _scale_type(scale_type), _bias_type(some default value) {} |
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.
Ok Wiill modify this
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.
I changed to library_data_t for bias_type (similar to scalar type).
@zhiweij1 could you please suggest ? Thanks
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.
71bac7a is right. But you have not correct the init list of the constructor. Another option is removing , _bias_type(bias_type)
in the init list and set the default value at line 179.
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.
Please update the PR.
@zhiweij1 @zhimingwang36