提交 9bc4aee7 编写于 作者: S ShawnXuan

Merge branch 'dev_bn_unimplement_bug' of...

Merge branch 'dev_bn_unimplement_bug' of https://github.com/Oneflow-Inc/oneflow into dev_xuan_act_event


Former-commit-id: 227a96e7ac56d1a5bbaa3eb138153460b6530dcb
......@@ -395,6 +395,12 @@ void NormalizationKernel<device_type, T>::UpdateMovingMeanAndMovingVariance(
variance_blob->dptr<T>(), 1, moving_variance_blob->mut_dptr<T>(), 1);
}
template<DeviceType device_type, typename T>
const PbMessage& NormalizationKernel<device_type, T>::GetCustomizedOpConf()
const {
return this->op_conf().normalization_conf();
}
ADD_DEFAULT_KERNEL_CREATOR(OperatorConf::kNormalizationConf,
NormalizationKernel, FLOATING_DATA_TYPE_SEQ);
......
......@@ -48,6 +48,7 @@ class NormalizationKernel final : public KernelIfWithActivation<device_type, T>,
const Blob* in_blob) const;
void UpdateMovingMeanAndMovingVariance(
const KernelCtx&, const std::function<Blob*(const std::string&)>&) const;
const PbMessage& GetCustomizedOpConf() const override;
};
} // namespace oneflow
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册