Home
last modified time | relevance | path

Searched refs:counter_var (Results 1 – 10 of 10) sorted by relevance

/external/tensorflow/tensorflow/python/data/experimental/kernel_tests/
Dget_single_element_test.py84 counter_var = variables.Variable(0)
87 counter_var.assign_add(1)
98 self.evaluate(counter_var.initializer)
100 self.assertEqual(self.evaluate(counter_var), 1)
104 counter_var = variables.Variable(1)
107 counter_var.assign(counter_var + 1)
111 counter_var.assign(counter_var * 2)
126 self.evaluate(counter_var.initializer)
128 self.assertEqual(self.evaluate(counter_var), 4)
Dreplicate_test.py114 counter_var = variable_scope.get_variable(
117 lambda _: counter_var.assign_add(1))
122 self.evaluate(counter_var.initializer)
314 counter_var = variable_scope.get_variable(
317 lambda _: counter_var.assign_add(1))
396 counter_var = variable_scope.get_variable(
399 lambda _: counter_var.assign_add(1))
/external/tensorflow/tensorflow/python/data/kernel_tests/
Dreduce_test.py138 counter_var = variables.Variable(0)
141 counter_var.assign_add(1)
155 self.evaluate(counter_var.initializer)
157 self.assertEqual(self.evaluate(counter_var), 10)
161 counter_var = variables.Variable(0)
167 counter_var.assign_add(1)
175 self.evaluate(counter_var.initializer)
177 self.assertEqual(self.evaluate(counter_var), 10)
181 counter_var = variables.Variable(1)
187 counter_var.assign(counter_var + 1)
[all …]
Dmap_test.py533 counter_var = variable_scope.get_variable(
537 counter_var.assign_add(1)
545 self.evaluate(counter_var.initializer)
547 self.assertEqual(i, self.evaluate(counter_var))
549 self.assertEqual(10, self.evaluate(counter_var))
552 self.assertEqual(10, self.evaluate(counter_var))
1214 counter_var = variable_scope.get_variable(
1216 return counter_var.assign_add(1)
1238 counter_var = variable_scope.get_variable(
1241 dataset = apply_map(dataset, lambda _: counter_var.assign_add(1))
[all …]
Dshuffle_test.py300 counter_var = variables.Variable(0)
307 counter_var.assign(counter_var + 1)
310 self.assertAllEqual(self.evaluate(counter_var), 10)
Diterator_test.py1002 counter_var = variables.Variable(0)
1005 counter_var.assign_add(1)
1016 return counter_var
1018 self.evaluate(counter_var.initializer)
/external/mesa3d/src/gallium/auxiliary/gallivm/
Dlp_bld_flow.c236 state->counter_var = lp_build_alloca(gallivm, LLVMTypeOf(start), "loop_counter"); in lp_build_loop_begin()
239 LLVMBuildStore(builder, start, state->counter_var); in lp_build_loop_begin()
245 state->counter = LLVMBuildLoad(builder, state->counter_var, ""); in lp_build_loop_begin()
265 LLVMBuildStore(builder, next, state->counter_var); in lp_build_loop_end_cond()
275 state->counter = LLVMBuildLoad(builder, state->counter_var, ""); in lp_build_loop_end_cond()
283 LLVMBuildStore(builder, end, state->counter_var); in lp_build_loop_force_set_counter()
290 state->counter = LLVMBuildLoad(builder, state->counter_var, ""); in lp_build_loop_force_reload_counter()
327 state->counter_var = lp_build_alloca(gallivm, LLVMTypeOf(start), "loop_counter"); in lp_build_for_loop_begin()
332 LLVMBuildStore(builder, start, state->counter_var); in lp_build_for_loop_begin()
336 state->counter = LLVMBuildLoad(builder, state->counter_var, ""); in lp_build_for_loop_begin()
[all …]
Dlp_bld_flow.h118 LLVMValueRef counter_var; member
155 LLVMValueRef counter_var; member
/external/tensorflow/tensorflow/python/data/experimental/kernel_tests/serialization/
Dmap_dataset_serialization_test.py80 counter_var = variable_scope.get_variable(
83 lambda _: counter_var.assign_add(1)))
Dparallel_map_dataset_serialization_test.py90 counter_var = variable_scope.get_variable(
93 lambda _: counter_var.assign_add(1),