Merge pull request #16671 from junjun315/cherry-pick-fix-load

cherry-pick:load_op.cc hot fix
feature/anakin-engine3
lujun 6 years ago committed by GitHub
commit af07056c06
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -29,7 +29,7 @@ class LoadOp : public framework::OperatorWithKernel {
framework::OpKernelType GetExpectedKernelType(
const framework::ExecutionContext &ctx) const override {
framework::OpKernelType kt = framework::OpKernelType(
framework::proto::VarType::FP32, platform::CPUPlace());
framework::proto::VarType::FP32, ctx.GetPlace());
return kt;
}
};

Loading…
Cancel
Save