Skip to content

Commit c6bfb71

Browse files
authored
Merge pull request #1481 from luotao1/compile
fix compile error
2 parents b265cca + b18d5a8 commit c6bfb71

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

paddle/function/CosSimOpGpu.cu

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,6 @@ void CosSimForward<DEVICE_TYPE_GPU>(GpuMatrix& out_mat,
9292
CHECK(in1_mat.useGpu_ == true && in2_mat.useGpu_ == true)
9393
<< "Matrix type are not GPU";
9494

95-
size_t num_samples = out_mat.getHeight();
9695
size_t dim = in1_mat.getWidth();
9796
real* out = out_mat.getData();
9897
const real* x = in1_mat.getData();

0 commit comments

Comments
 (0)