提交 7306aab6 编写于 作者: X xuwei06

GetActualKernelType => GetExpectedKernelType

上级 ce233796
...@@ -33,7 +33,7 @@ class AssignValueOp : public framework::OperatorWithKernel { ...@@ -33,7 +33,7 @@ class AssignValueOp : public framework::OperatorWithKernel {
} }
protected: protected:
framework::OpKernelType GetActualKernelType( framework::OpKernelType GetExpectedKernelType(
const framework::ExecutionContext &ctx) const override { const framework::ExecutionContext &ctx) const override {
return framework::OpKernelType( return framework::OpKernelType(
framework::proto::DataType(ctx.Attr<int>("dtype")), ctx.GetPlace()); framework::proto::DataType(ctx.Attr<int>("dtype")), ctx.GetPlace());
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册