提交 51b30932 编写于 作者: A ashburnlee

add support for cuda

上级 f9f3bc21
...@@ -88,8 +88,7 @@ class UniqueOp : public framework::OperatorWithKernel { ...@@ -88,8 +88,7 @@ class UniqueOp : public framework::OperatorWithKernel {
framework::OpKernelType GetExpectedKernelType( framework::OpKernelType GetExpectedKernelType(
const framework::ExecutionContext& ctx) const override { const framework::ExecutionContext& ctx) const override {
return framework::OpKernelType( return framework::OpKernelType(
OperatorWithKernel::IndicateVarDataType(ctx, "X"), OperatorWithKernel::IndicateVarDataType(ctx, "X"), ctx.GetPlace());
platform::CPUPlace());
} }
}; };
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册