-
Notifications
You must be signed in to change notification settings - Fork 213
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
Update oneDAL PCA infer method #2410
Update oneDAL PCA infer method #2410
Conversation
…alam/oneDAL into dev/extend_pca_model
} | ||
|
||
const auto res_array = res_nd.flatten(queue, { gemm_event }); | ||
const auto res_table = homogen_table::wrap(res_array, row_count, component_count); | ||
return result_t{}.set_transformed_data(res_table); | ||
} | ||
|
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 seems to me that our bazel tests almost do not cover infer for pca, might be a good time to add them
Float(1.0), | ||
Float(0.0), | ||
{ mean_center_event }); | ||
gemm_event.wait_and_throw(); |
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.
WHat is the point of waiting for the event here?
@@ -51,6 +51,98 @@ sycl::event means(sycl::queue& q, | |||
}); | |||
} | |||
|
|||
// Subtract 1d array from 2d array elementwise | |||
template <typename Float> | |||
sycl::event elementwise_difference(sycl::queue& q, |
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 use elementwise operations that are already present
|
||
// SQRT of 1d array elementwise | ||
template <typename Float> | ||
sycl::event elementwise_sqrt(sycl::queue& q, |
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.
Same
|
||
// Divide 2d array by 1d array elementwise | ||
template <typename Float> | ||
sycl::event elementwise_division(sycl::queue& q, |
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.
Same
How does this PR compare to #2573 ? |
2573 is an updated version of this. Closing this one as duplicate. |
Changes have been moved to #2573, closed as duplicate |
Description
The changes are proposed to move some computations from python wrappers to oneDAL to improve performance of python libraries.
Changes proposed in this pull request: