aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/core/kernels/random_op.cc
diff options
context:
space:
mode:
Diffstat (limited to 'tensorflow/core/kernels/random_op.cc')
-rw-r--r--tensorflow/core/kernels/random_op.cc4
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;