We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 722e049 commit 3ae95d0Copy full SHA for 3ae95d0
paddle/phi/kernels/cpu/batch_norm_kernel.cc
@@ -58,6 +58,7 @@ void BatchNormKernel(const Context& dev_ctx,
58
if (saved_mean) dev_ctx.template Alloc<T>(saved_mean);
59
if (saved_variance) dev_ctx.template Alloc<T>(saved_variance);
60
if (reserve_space) {
61
+ // infermeta dim is -1.
62
reserve_space->Resize({0});
63
dev_ctx.template Alloc<T>(reserve_space);
64
}
0 commit comments