Browse Source

spacetobatch

tags/v1.5.0-rc1
zong_shuai 4 years ago
parent
commit
6c2b64c0b7
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      mindspore/ccsrc/backend/kernel_compiler/gpu/arrays/batchtospace_gpu_kernel.h

+ 1
- 1
mindspore/ccsrc/backend/kernel_compiler/gpu/arrays/batchtospace_gpu_kernel.h View File

@@ -112,7 +112,7 @@ class BatchToSpaceGpuKernel : public GpuKernel {
// check input_shape
auto input_shape = AnfAlgo::GetInputRealDeviceShapeIfExist(kernel_node, 0);
if(input_shape.size() != 4) {
MS_LOG(ERROR) << "Input is " << shape_size << "-D, but BatchToSpace supports 4-D tensor.";
MS_LOG(ERROR) << "Input is " << input_shape.size() << "-D, but BatchToSpace supports 4-D tensor.";
return false;
}
if((input_shape[0] % (block_size_ * block_size_)) != 0) {


Loading…
Cancel
Save