Skip to content

Commit

Permalink
Update acc_kernel.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
marigoold authored Dec 20, 2023
1 parent 97292e2 commit 20cc5c3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions oneflow/user/kernels/acc_kernel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ class AccKernel final : public user_op::OpKernel {
std::unique_ptr<ep::primitive::Add> primitive =
ep::primitive::NewPrimitive<ep::primitive::AddFactory>(ctx->device_type(), in->data_type());
CHECK(primitive);
std::cout << ctx->Tensor4ArgNameAndIndex("in", 0)->shape_view().elem_cnt() << std::endl;
primitive->Launch(ctx->stream(), out->dptr(), in->dptr(), out->mut_dptr(),
in->shape_view().elem_cnt());
}
Expand Down

0 comments on commit 20cc5c3

Please sign in to comment.