Unverified Commit 060bd5cd authored by schetlur's avatar schetlur Committed by GitHub
Browse files

Update softmax.h

Fixing NULL stream launch in dispatch_additive_masked_softmax
parent 058addbe
...@@ -465,7 +465,7 @@ bool dispatch_additive_masked_softmax(output_t *dst, const input_t *src, const i ...@@ -465,7 +465,7 @@ bool dispatch_additive_masked_softmax(output_t *dst, const input_t *src, const i
dim3 threads(warp_size, warps_per_block, 1); dim3 threads(warp_size, warps_per_block, 1);
// launch // launch
kernel<<<blocks, threads>>>(dst, src, pad_mask, batch_count, softmax_elements_stride, softmax_elements, pad_batch_stride); kernel<<<blocks, threads, 0, at::cuda::getCurrentCUDAStream()>>>(dst, src, pad_mask, batch_count, softmax_elements_stride, softmax_elements, pad_batch_stride);
return true; return true;
} }
return false; return false;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment