Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
eaplatanios committed Jul 30, 2024
1 parent a978b1f commit d7fe81d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions xla/stream_executor/cuda/cuda_dnn.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1749,8 +1749,8 @@ absl::Status CheckAndFetchProjectionWeights(
int64_t size =
dims[0] * dims[1] * dims[2] * CudnnDataTypeToByteSize(data_type);
#endif // CUDNN_VERSION >= 8100
dnn::RnnDescriptor::ParamsRegion region = {
static_cast<int64_t>(offset), size};
dnn::RnnDescriptor::ParamsRegion region = {static_cast<int64_t>(offset),
size};
weights->push_back(region);
}
return absl::OkStatus();
Expand Down Expand Up @@ -1891,8 +1891,8 @@ absl::StatusOr<CudnnRnnParamsDescriptor> CudnnRnnParamsDescriptor::Create(
/*nbDims=*/&n_dims, /*filterDimA=*/dims));
int64_t size =
dims[0] * dims[1] * dims[2] * CudnnDataTypeToByteSize(data_type);
dnn::RnnDescriptor::ParamsRegion region = {
static_cast<int64_t>(offset), size};
dnn::RnnDescriptor::ParamsRegion region = {static_cast<int64_t>(offset),
size};
(type == 0 ? weights : biases).push_back(region);
}
#endif // CUDNN_VERSION >= 8100
Expand Down

0 comments on commit d7fe81d

Please sign in to comment.