Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

Commit

Permalink
removing tabs that slipped in
Browse files Browse the repository at this point in the history
  • Loading branch information
stephenrawls committed May 4, 2019
1 parent ff66696 commit 639de6f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/operator/rnn-inl.h
Original file line number Diff line number Diff line change
Expand Up @@ -599,14 +599,14 @@ class RNNOp {

if (ctx_.dev_type == kGPU) {
int host_workspace_bytes =
param_.batch_size_ * sizeof(IType) + param_.batch_size_ * sizeof(int);
param_.batch_size_ * sizeof(IType) + param_.batch_size_ * sizeof(int);

host_workspace =
ctx.requested[rnn_enum::kTempSpace].get_host_space_typed<1, char>(Shape1(host_workspace_bytes));
ctx.requested[rnn_enum::kTempSpace].get_host_space_typed<1, char>(Shape1(host_workspace_bytes));

sequence_length_cpu_int = reinterpret_cast<int*>(host_workspace.dptr_);
sequence_length_cpu_itype =
reinterpret_cast<IType*>(host_workspace.dptr_ + sizeof(int) * param_.batch_size_);
reinterpret_cast<IType*>(host_workspace.dptr_ + sizeof(int) * param_.batch_size_);

(void)sequence_length_cpu_int;
(void)sequence_length_cpu_itype;
Expand Down

0 comments on commit 639de6f

Please sign in to comment.