Skip to content

Commit

Permalink
Minor style change.
Browse files Browse the repository at this point in the history
  • Loading branch information
riga committed Mar 27, 2024
1 parent 8781e78 commit 947d623
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cmssw/MLProf/RuntimeMeasurement/plugins/TFInference.cc
Original file line number Diff line number Diff line change
Expand Up @@ -160,9 +160,9 @@ tensorflow::Tensor TFInference::createInputTensor(int rank, std::vector<int> sha
// fill it
float* data = tensor.flat<float>().data();
for (int i = 0; i < tensor.NumElements(); i++, data++) {
*data = inputType_ == mlprof::InputType::Incremental ? float(i)
: inputType_ == mlprof::InputType::Zeros ? float(0)
: drawNormal();
*data = inputType_ == mlprof::InputType::Incremental
? float(i)
: (inputType_ == mlprof::InputType::Zeros ? float(0) : drawNormal());
}

return tensor;
Expand Down

0 comments on commit 947d623

Please sign in to comment.