diff options
author | 2017-11-22 13:42:21 -0800 | |
---|---|---|
committer | 2017-11-22 13:50:02 -0800 | |
commit | b1d8c59e9b014b527fb2fbef9ce9afc14dbc4938 (patch) | |
tree | af207d5a90f3176bdd3fbffbe1e98258125bf389 /tensorflow/core/kernels/random_op.cc | |
parent | e219aeb542779d90a582ffe16f8602cd1b275b22 (diff) |
Merge changes from github.
PiperOrigin-RevId: 176695926
Diffstat (limited to 'tensorflow/core/kernels/random_op.cc')
-rw-r--r-- | tensorflow/core/kernels/random_op.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tensorflow/core/kernels/random_op.cc b/tensorflow/core/kernels/random_op.cc index a37c757865..55a8b9c9b6 100644 --- a/tensorflow/core/kernels/random_op.cc +++ b/tensorflow/core/kernels/random_op.cc @@ -577,7 +577,7 @@ struct FillPhiloxRandomKernel<Distribution, false> { const size_t kGroupSize = Distribution::kResultElementCount; const size_t item_id = item.get_global(0); - const size_t total_item_count = item.get_global_range(0); + const size_t total_item_count = item.get_global_range(); size_t offset = item_id * kGroupSize; gen_.Skip(item_id); @@ -633,7 +633,7 @@ struct FillPhiloxRandomKernel<Distribution, true> { PhiloxRandom::kResultElementCount; const size_t item_id = item.get_global(0); - const size_t total_item_count = item.get_global_range(0); + const size_t total_item_count = item.get_global_range(); size_t group_index = item_id; size_t offset = group_index * kGroupSize; |