mirror of
https://github.com/lordmathis/CUDANet.git
synced 2025-11-06 17:54:27 +00:00
Cleanup and refactor
This commit is contained in:
@@ -47,21 +47,3 @@ TEST(ActivationFunctionsTest, SigmoidSanityCheck) {
|
||||
|
||||
cudaDeviceReset();
|
||||
}
|
||||
|
||||
// void print_vec(float* d_vec, int length) {
|
||||
|
||||
// std::vector<float> h_vec(length);
|
||||
// CUDA_CHECK(cudaMemcpy(
|
||||
// h_vec.data(), d_vec, sizeof(float) * length, cudaMemcpyDeviceToHost
|
||||
// ));
|
||||
|
||||
// float sum = 0.0f;
|
||||
|
||||
// for (int i = 0; i < length; ++i) {
|
||||
// std::cout << h_vec[i] << ", ";
|
||||
// sum += h_vec[i];
|
||||
// }
|
||||
|
||||
// std::cout << std::endl;
|
||||
|
||||
// }
|
||||
Reference in New Issue
Block a user