Skip to content

Commit

Permalink
Remove the unnecessary const var
Browse files Browse the repository at this point in the history
  • Loading branch information
kaixih authored and dubey committed May 31, 2019
1 parent 74376de commit 85a9202
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions tensorflow/core/nccl/nccl_manager.cc
Original file line number Diff line number Diff line change
Expand Up @@ -410,13 +410,12 @@ void NcclManager::AddParticipant(std::unique_ptr<Participant> participant,
CollectiveType collective_type,
ncclRedOp_t reduction_op) {
Collective* to_run = nullptr;
DataType data_type_val;
DataType data_type;
if (participant->input != nullptr) {
data_type_val = participant->input->dtype();
data_type = participant->input->dtype();
} else {
data_type_val = participant->output->dtype();
data_type = participant->output->dtype();
}
const DataType data_type = data_type_val;
{
mutex_lock l(mu_);
auto collective_it = collectives_.find(context.collective_key);
Expand Down

0 comments on commit 85a9202

Please sign in to comment.