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 d3b6291 commit 46e18cbCopy full SHA for 46e18cb
paddle/fluid/operators/load_op.cc
@@ -29,7 +29,7 @@ class LoadOp : public framework::OperatorWithKernel {
29
framework::OpKernelType GetExpectedKernelType(
30
const framework::ExecutionContext &ctx) const override {
31
framework::OpKernelType kt = framework::OpKernelType(
32
- framework::proto::VarType::FP32, platform::CPUPlace());
+ framework::proto::VarType::FP32, ctx.GetPlace());
33
return kt;
34
}
35
};
0 commit comments