Searched refs:counter_var (Results 1 – 10 of 10) sorted by relevance
/external/tensorflow/tensorflow/python/data/experimental/kernel_tests/ |
D | get_single_element_test.py | 84 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)
|
D | replicate_test.py | 114 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/ |
D | reduce_test.py | 138 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 …]
|
D | map_test.py | 533 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 …]
|
D | shuffle_test.py | 300 counter_var = variables.Variable(0) 307 counter_var.assign(counter_var + 1) 310 self.assertAllEqual(self.evaluate(counter_var), 10)
|
D | iterator_test.py | 1002 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/ |
D | lp_bld_flow.c | 236 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 …]
|
D | lp_bld_flow.h | 118 LLVMValueRef counter_var; member 155 LLVMValueRef counter_var; member
|
/external/tensorflow/tensorflow/python/data/experimental/kernel_tests/serialization/ |
D | map_dataset_serialization_test.py | 80 counter_var = variable_scope.get_variable( 83 lambda _: counter_var.assign_add(1)))
|
D | parallel_map_dataset_serialization_test.py | 90 counter_var = variable_scope.get_variable( 93 lambda _: counter_var.assign_add(1),
|