Browse Source

fix bceloss bug

tags/v1.2.0-rc1
baihuawei 5 years ago
parent
commit
4a3fcc086b
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