Skip to content

Commit

Permalink
Fix Bug in transform.cu (#3534)
Browse files Browse the repository at this point in the history
* Bug fix

* Fixed formatting error

---------

Co-authored-by: Logan Adams <[email protected]>
  • Loading branch information
2 people authored and jeffra committed Jun 23, 2023
1 parent d33f1f8 commit aebdfb3
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions csrc/transformer/inference/csrc/transform.cu
Original file line number Diff line number Diff line change
Expand Up @@ -683,14 +683,14 @@ void launch_transform4d_0213<float>(float* out,
}

template <typename T>
void launch_transform4d_0213<T>(T* out,
const T* in,
int batch_size,
int heads,
int seq_length,
int hidden_dim,
cudaStream_t stream,
int trans_count)
void launch_transform4d_0213(T* out,
const T* in,
int batch_size,
int heads,
int seq_length,
int hidden_dim,
cudaStream_t stream,
int trans_count)
{
hidden_dim >>= 3;
int head_ext = (hidden_dim - 1) / MAX_THREADS + 1;
Expand Down

0 comments on commit aebdfb3

Please sign in to comment.