未验证 提交 8fc9c412 编写于 作者: J jakpiase 提交者: GitHub

fix for gaussian random (#41572)

上级 368f1dda
......@@ -16,6 +16,7 @@ limitations under the License. */
#include "paddle/fluid/framework/generator.h"
#include "paddle/fluid/operators/fill_constant_op.h"
#include "paddle/fluid/platform/mkldnn_helper.h"
namespace paddle {
namespace operators {
......@@ -42,7 +43,7 @@ class GaussianMKLDNNKernel : public paddle::framework::OpKernel<T> {
}
tensor->set_layout(DataLayout::kMKLDNN);
tensor->set_format(dnnl::memory::format_tag::oihw);
tensor->set_format(platform::GetPlainMKLDNNFormat(tensor->dims().size()));
}
};
} // namespace operators
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册