Home
last modified time | relevance | path

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

/external/tensorflow/tensorflow/python/data/kernel_tests/
Dreduce_test.py129 counter_var = variables.Variable(0)
132 counter_var.assign_add(1)
146 self.evaluate(counter_var.initializer)
148 self.assertEqual(self.evaluate(counter_var), 10)
151 counter_var = variables.Variable(0)
157 counter_var.assign_add(1)
165 self.evaluate(counter_var.initializer)
167 self.assertEqual(self.evaluate(counter_var), 10)
170 counter_var = variables.Variable(1)
176 counter_var.assign(counter_var + 1)
[all …]
Dmap_test.py437 counter_var = variable_scope.get_variable(
441 counter_var.assign_add(1)
448 self.evaluate(counter_var.initializer)
450 self.assertEqual(i, self.evaluate(counter_var))
452 self.assertEqual(10, self.evaluate(counter_var))
455 self.assertEqual(10, self.evaluate(counter_var))
1050 counter_var = variable_scope.get_variable(
1052 return counter_var.assign_add(1)
1078 counter_var = variable_scope.get_variable(
1082 dataset, lambda _: counter_var.assign_add(1))
[all …]
/external/tensorflow/tensorflow/python/data/experimental/kernel_tests/
Dget_single_element_test.py77 counter_var = variables.Variable(0)
80 counter_var.assign_add(1)
91 self.evaluate(counter_var.initializer)
93 self.assertEqual(self.evaluate(counter_var), 1)
96 counter_var = variables.Variable(1)
99 counter_var.assign(counter_var + 1)
103 counter_var.assign(counter_var * 2)
118 self.evaluate(counter_var.initializer)
120 self.assertEqual(self.evaluate(counter_var), 4)
/external/mesa3d/src/gallium/auxiliary/gallivm/
Dlp_bld_flow.c226 state->counter_var = lp_build_alloca(gallivm, LLVMTypeOf(start), "loop_counter"); in lp_build_loop_begin()
229 LLVMBuildStore(builder, start, state->counter_var); in lp_build_loop_begin()
235 state->counter = LLVMBuildLoad(builder, state->counter_var, ""); in lp_build_loop_begin()
255 LLVMBuildStore(builder, next, state->counter_var); in lp_build_loop_end_cond()
265 state->counter = LLVMBuildLoad(builder, state->counter_var, ""); in lp_build_loop_end_cond()
303 state->counter_var = lp_build_alloca(gallivm, LLVMTypeOf(start), "loop_counter"); in lp_build_for_loop_begin()
308 LLVMBuildStore(builder, start, state->counter_var); in lp_build_for_loop_begin()
312 state->counter = LLVMBuildLoad(builder, state->counter_var, ""); in lp_build_for_loop_begin()
328 LLVMBuildStore(builder, next, state->counter_var); in lp_build_for_loop_end()
Dlp_bld_flow.h114 LLVMValueRef counter_var; member
145 LLVMValueRef counter_var; member
/external/tensorflow/tensorflow/python/data/experimental/kernel_tests/serialization/
Dmap_dataset_serialization_test.py76 counter_var = variable_scope.get_variable(
79 lambda _: counter_var.assign_add(1)))
Dparallel_map_dataset_serialization_test.py87 counter_var = variable_scope.get_variable(
90 lambda _: counter_var.assign_add(1),
/external/tensorflow/tensorflow/contrib/learn/python/learn/
Dmonitors_test.py530 counter_var = variables.VariableV1(0.0, name='my_counter')
531 assign_add = state_ops.assign_add(counter_var, 1.0, name='my_assign_add')
538 counter_var.name: step + 1.0,
548 counter_var.name: step + 31.0,
559 counter_var.name: (step + 31.0, step + 1.0),
565 counter_var.name: (step + 1.0, step + 31.0),