mirror of
https://github.com/lordmathis/CUDANet.git
synced 2025-11-06 09:44:28 +00:00
Fix softmax sum kernel
This commit is contained in:
@@ -58,6 +58,8 @@ TEST(ActivationTest, SoftmaxTest2) {
|
||||
EXPECT_NEAR(output[i], expected[i], 1e-5f);
|
||||
}
|
||||
|
||||
std::cout << sum << std::endl;
|
||||
|
||||
EXPECT_NEAR(sum, 1.0f, 1e-5f);
|
||||
|
||||
cudaFree(d_input);
|
||||
|
||||
Reference in New Issue
Block a user