aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/core/lib/random
diff options
context:
space:
mode:
authorGravatar Peter Hawkins <phawkins@google.com>2017-05-09 09:14:16 -0700
committerGravatar TensorFlower Gardener <gardener@tensorflow.org>2017-05-10 16:29:47 -0700
commit1d0b8c007b8bc7f77dd63c74f02d87185071f038 (patch)
treeb72df4064224d66c62bb4a126efb06fa214fa439 /tensorflow/core/lib/random
parentb9845c6d0d5dc601fb3b58206a7070aa8937af4f (diff)
Remove unnecessary copies of value parameters.
PiperOrigin-RevId: 155511618
Diffstat (limited to 'tensorflow/core/lib/random')
-rw-r--r--tensorflow/core/lib/random/random_distributions_test.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/tensorflow/core/lib/random/random_distributions_test.cc b/tensorflow/core/lib/random/random_distributions_test.cc
index 531ed78109..28ff5bf6e8 100644
--- a/tensorflow/core/lib/random/random_distributions_test.cc
+++ b/tensorflow/core/lib/random/random_distributions_test.cc
@@ -70,7 +70,7 @@ void FillRandomsWithSingles(PhiloxRandom gen,
// z_limit: the maximum z-test we would consider the test to pass;
template <typename T>
bool CheckSamplesMoments(const std::vector<T>& samples,
- std::function<double(int)> theoretical_moments,
+ const std::function<double(int)>& theoretical_moments,
int max_moments, int stride, T z_limit) {
const T* const samples_data = &samples[0];
const int samples_size = samples.size();