Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ void GPUUniformRandomKernel(const Context& dev_ctx,
out->set_height(input.height());
DenseTensor* tensor = out->mutable_value();
dev_ctx.template Alloc<T>(tensor);
funcs::UniformRandom<T>(reinterpret_cast<const phi::GPUContext&>(dev_ctx),
funcs::UniformRandom<T>(reinterpret_cast<const GPUContext&>(dev_ctx),
tensor,
seed,
min,
Expand Down
8 changes: 4 additions & 4 deletions paddle/phi/kernels/sparse/gpu/sparse_attention_kernel.cu
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ input: sparse C in CSR format (num_rows,num_rows)
output: sparse C after softmax operation
*/
template <typename DeviceContext, typename T>
void SparseSoftmaxForward(const phi::GPUContext& dev_ctx,
void SparseSoftmaxForward(const GPUContext& dev_ctx,
const DenseTensor* offset,
const DenseTensor* columns,
DenseTensor* input,
Expand Down Expand Up @@ -319,7 +319,7 @@ void SparseSoftmaxForward(const phi::GPUContext& dev_ctx,
}

template <typename DeviceContext, typename T>
void SparseSoftmaxBackward(const phi::GPUContext& dev_ctx,
void SparseSoftmaxBackward(const GPUContext& dev_ctx,
const DenseTensor* offset,
const DenseTensor* columns,
DenseTensor* dx,
Expand Down Expand Up @@ -450,7 +450,7 @@ input: dense A (num_rows,num_cols), dense B (num_rows,num_cols)
output: sparse C in CSR format (num_rows,num_rows)
*/
template <typename DeviceContext, typename T>
void DotSdd(const phi::GPUContext& dev_ctx,
void DotSdd(const GPUContext& dev_ctx,
const DenseTensor* a,
const DenseTensor* b,
const DenseTensor* c_offset,
Expand Down Expand Up @@ -550,7 +550,7 @@ input: sparse A in CSR format (num_rows,num_rows), dense B (num_rows,num_cols)
output: dense C (num_rows,num_cols)
*/
template <typename DeviceContext, typename T>
void DotDsd(const phi::GPUContext& dev_ctx,
void DotDsd(const GPUContext& dev_ctx,
const DenseTensor* a_offset,
const DenseTensor* a_columns,
const DenseTensor* a_value,
Expand Down
Loading