Browse Source

!12660 fix gpu bceloss bug

From: @huaweib
Reviewed-by: @zhoufeng54,@chujinjin
Signed-off-by: @chujinjin
tags/v1.2.0-rc1
mindspore-ci-bot Gitee 4 years ago
parent
commit
a7bfc16aca
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      mindspore/ccsrc/backend/kernel_compiler/gpu/nn/binary_cross_entropy_gpu_kernel.h

+ 1
- 1
mindspore/ccsrc/backend/kernel_compiler/gpu/nn/binary_cross_entropy_gpu_kernel.h View File

@@ -59,7 +59,7 @@ class BinaryCrossEntropyGpuKernel : public GpuKernel {
reduction_ = 2;
}
workspace_size_ = sizeof(T);
if (reduction_ == 0) {
if (reduction_ != 0) {
workspace_size_ *= input_size_;
}
InitSizeLists();


Loading…
Cancel
Save