Home
last modified time | relevance | path

Searched refs:read_value (Results 1 – 25 of 67) sorted by relevance

123

/external/tensorflow/tensorflow/core/lib/wav/
Dwav_io_test.cc269 string read_value; in TEST() local
270 TF_EXPECT_OK(ReadString(test_string, 2, &read_value, &offset)); in TEST()
271 EXPECT_EQ("Ex", read_value); in TEST()
274 TF_EXPECT_OK(ReadString(test_string, 6, &read_value, &offset)); in TEST()
275 EXPECT_EQ("pected", read_value); in TEST()
278 Status read_status = ReadString(test_string, 3, &read_value, &offset); in TEST()
287 int8 read_value; in TEST() local
288 TF_EXPECT_OK(ReadValue(test_string, &read_value, &offset)); in TEST()
289 EXPECT_EQ(0, read_value); in TEST()
292 TF_EXPECT_OK(ReadValue(test_string, &read_value, &offset)); in TEST()
[all …]
/external/tensorflow/tensorflow/python/keras/mixed_precision/experimental/
Dautocast_variable.py103 def read_value(self): member in AutoCastVariable
104 val = self._variable.read_value()
116 def assign(self, value, use_locking=None, name=None, read_value=True): argument
118 value, use_locking=use_locking, name=name, read_value=read_value)
120 def assign_add(self, delta, use_locking=None, name=None, read_value=True): argument
122 delta, use_locking=use_locking, name=name, read_value=read_value)
124 def assign_sub(self, delta, use_locking=None, name=None, read_value=True): argument
126 delta, use_locking=use_locking, name=name, read_value=read_value)
Dautocast_variable_test.py83 self.assertEqual(x.read_value().dtype, dtypes.float32)
91 self.assertEqual(x.read_value().dtype, dtypes.float16)
99 self.assertEqual(x.read_value().dtype, dtypes.float32)
112 self.assertEqual(x.read_value().dtype, dtypes.float16)
117 self.assertEqual(x.read_value().dtype, dtypes.float32)
120 self.assertEqual(x.read_value().dtype, dtypes.float16)
/external/nos/test/system-test-harness/src/
Dutil.cc293 uint8_t read_value; in GetAhdlc() local
295 while (read(tty_fd, &read_value, 1) <= 0) { in GetAhdlc()
309 DecodeFrameByte(&decoder, read_value); in GetAhdlc()
312 if (read_value == '\n') { in GetAhdlc()
315 print_bin(std::cout, read_value); in GetAhdlc()
621 char read_value = ' '; in ReadLineUntilBlock() local
627 while (read_value != '\n' && read(tty_fd, &read_value, 1) > 0) { in ReadLineUntilBlock()
629 print_bin(ss, read_value); in ReadLineUntilBlock()
630 line.append(1, read_value); in ReadLineUntilBlock()
638 if (read_value == '\n' || line.size() == 0 || in ReadLineUntilBlock()
[all …]
/external/tensorflow/tensorflow/contrib/tpu/python/tpu/
Dkeras_tpu_variables.py148 return self._primary_var.read_value()
152 def read_value(self): member in ReplicatedVariable
159 return self.read_value().__getitem__(*args)
161 def assign(self, value, use_locking=None, name=None, read_value=False): argument
182 if read_value:
184 return self.read_value()
192 if read_value:
196 def assign_add(self, delta, use_locking=None, name=None, read_value=True): argument
203 if read_value:
207 def assign_sub(self, delta, use_locking=None, name=None, read_value=True): argument
[all …]
/external/swiftshader/third_party/LLVM/test/Scripts/
Dcoff-dump.py324 def read_value(expr): function
394 value = read_value(iformat)
405 value = read_value(iformat)
408 selector = read_value(definitions[0])
427 value = read_value(iformat)
488 start_index = read_value(start_index)
489 value = read_value(length)
512 item_size = read_value(ent_size)
513 value = read_value(length)
536 offset = read_value(offset)
[all …]
/external/tensorflow/tensorflow/python/distribute/
Dvalues.py576 def read_value(self): member in DistributedVariable
838 def __add__(self, o): return self.read_value() + o
839 def __radd__(self, o): return o + self.read_value()
840 def __sub__(self, o): return self.read_value() - o
841 def __rsub__(self, o): return o - self.read_value()
842 def __mul__(self, o): return self.read_value() * o
843 def __rmul__(self, o): return o * self.read_value()
844 def __truediv__(self, o): return self.read_value() / o
845 def __rtruediv__(self, o): return o / self.read_value()
846 def __floordiv__(self, o): return self.read_value() // o
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/test/Instrumentation/MemorySanitizer/
Dmanual-shadow.ll11 define i32 @read_value(i32* %a) sanitize_memory {
16 ; CHECK-BASE-LABEL: @read_value
21 ; CHECK-AND-LABEL: @read_value
27 ; CHECK-XOR-LABEL: @read_value
33 ; CHECK-XOR-AND-LABEL: @read_value
40 ; CHECK-ORIGIN-BASE-LABEL: @read_value
/external/tensorflow/tensorflow/python/framework/
Dauto_control_deps_test.py49 val = v.read_value()
70 val = v.read_value()
95 self.assertAllEqual(v.read_value().eval(), 5.0)
97 self.assertAllEqual(v.read_value().eval(), 6.0)
127 val = v.read_value()
150 val = v.read_value()
172 val = v.read_value()
194 val = v.read_value()
223 return v.read_value()
238 return self.v.read_value()
[all …]
/external/tensorflow/tensorflow/python/training/
Dtraining_util_test.py118 read_value, _ = sess.run([read_tensor, inc_op])
119 self.assertEqual(0, read_value)
120 read_value, _ = sess.run([read_tensor, inc_three_op])
121 self.assertEqual(1, read_value)
122 read_value = sess.run(read_tensor)
123 self.assertEqual(4, read_value)
Dmoving_averages.py245 unbiased_ema_delta = (unbiased_var - biased_var.read_value() /
247 1.0 - decay, local_step.read_value())))
/external/tensorflow/tensorflow/contrib/eager/python/
Dsaver_test.py52 self.assertEqual(v1.read_value().numpy(), 2.0)
55 self.assertEqual(v1.read_value().numpy(), 1.0)
90 self.assertEqual(v1.read_value().numpy(), 2.0)
91 self.assertEqual(v2.read_value().numpy(), 2.0)
94 self.assertEqual(v1.read_value().numpy(), 1.0)
105 self.assertEqual(v3.read_value().numpy(), 1.0)
106 self.assertEqual(v4.read_value().numpy(), 1.0)
Dremote_test.py132 self.assertAllEqual(v0.read_value(), [2.0])
142 self.assertAllEqual(v1_replica.read_value(), [4.0])
/external/tensorflow/tensorflow/python/ops/
Dvariables.py435 def read_value(self): member in Variable
515 self.read_value,
542 def assign(self, value, use_locking=False, name=None, read_value=True): argument
560 def assign_add(self, delta, use_locking=False, name=None, read_value=True): argument
578 def assign_sub(self, delta, use_locking=False, name=None, read_value=True): argument
1449 ops.numpy_text(self.read_value(), is_repr=True))
1674 def read_value(self): member in RefVariable
1770 def assign(self, value, use_locking=False, name=None, read_value=True): argument
1788 if read_value:
1792 def assign_add(self, delta, use_locking=False, name=None, read_value=True): argument
[all …]
Dresource_variable_ops.py428 ops.numpy_text(self.read_value(), is_repr=True))
707 return bool(self.read_value())
717 initial_value=self.read_value(),
826 return self.read_value().numpy()
868 def read_value(self): member in ResourceVariable
974 def assign_sub(self, delta, use_locking=None, name=None, read_value=True): argument
997 if read_value:
1001 def assign_add(self, delta, use_locking=None, name=None, read_value=True): argument
1021 if read_value:
1034 def assign(self, value, use_locking=None, name=None, read_value=True): argument
[all …]
/external/tensorflow/tensorflow/python/kernel_tests/
Dresource_variable_ops_test.py511 self.assertAllEqual(ref.read_value(), [True, True, True])
587 assign_with_read = v.assign(3.0, read_value=True)
589 assign_without_read = v.assign(4.0, read_value=False)
720 assign_with_read = v.assign_add(1.0, read_value=True)
722 assign_without_read = v.assign_add(1.0, read_value=False)
738 assign_with_read = v.assign_sub(1.0, read_value=True)
740 assign_without_read = v.assign_sub(1.0, read_value=False)
875 return (i + 1, v.read_value())
896 self.assertAllEqual(init.numpy(), v.read_value().numpy())
904 self.assertAllEqual(2 * init.numpy(), v2.read_value().numpy())
[all …]
Dcritical_section_test.py68 c = v.read_value()
83 v.read_value)
107 return v.read_value()
132 c = v.read_value()
376 return v.read_value()
/external/tensorflow/tensorflow/tools/api/golden/v1/
Dtensorflow.-variable.pbtxt57 …argspec: "args=[\'self\', \'value\', \'use_locking\', \'name\', \'read_value\'], varargs=None, key…
61 …argspec: "args=[\'self\', \'delta\', \'use_locking\', \'name\', \'read_value\'], varargs=None, key…
65 …argspec: "args=[\'self\', \'delta\', \'use_locking\', \'name\', \'read_value\'], varargs=None, key…
96 name: "read_value"
/external/tensorflow/tensorflow/tools/api/golden/v2/
Dtensorflow.-variable.pbtxt56 …argspec: "args=[\'self\', \'value\', \'use_locking\', \'name\', \'read_value\'], varargs=None, key…
60 …argspec: "args=[\'self\', \'delta\', \'use_locking\', \'name\', \'read_value\'], varargs=None, key…
64 …argspec: "args=[\'self\', \'delta\', \'use_locking\', \'name\', \'read_value\'], varargs=None, key…
95 name: "read_value"
/external/tensorflow/tensorflow/lite/tools/benchmark/
Dcommand_line_flags.cc51 T read_value; in ParseFlag() local
52 stream >> read_value; in ParseFlag()
56 hook(read_value); in ParseFlag()
/external/tensorflow/tensorflow/contrib/optimizer_v2/
Dcheckpointable_utils_test.py265 on_create_optimizer.minimize(loss=dummy_var.read_value)
448 optimizer.minimize(root.var.read_value)
489 new_root.optimizer.minimize(new_root.var.read_value)
510 obj.opt.minimize(obj.var.read_value())
527 obj.opt.minimize(obj.var.read_value())
547 train_op = optimizer.minimize(first_variable.read_value)
563 train_op = optimizer.minimize(second_variable.read_value)
613 optimizer.minimize(v1_save.read_value)
627 load_optimizer.minimize(var.read_value)
/external/tensorflow/tensorflow/compiler/tests/
Dvariable_ops_test.py53 y = v.read_value()
67 y = v.read_value()
149 a = x.read_value()
153 c = x.read_value()
159 f = x.read_value()
211 x = v.read_value()
/external/perf_data_converter/src/quipper/
Dperf_serializer.cc379 auto read_value = read_info->add_read_value(); in SerializeSampleEvent() local
380 read_value->set_value(sample_info.read.group.values[i].value); in SerializeSampleEvent()
381 read_value->set_id(sample_info.read.group.values[i].id); in SerializeSampleEvent()
384 auto read_value = read_info->add_read_value(); in SerializeSampleEvent() local
385 read_value->set_value(sample_info.read.one.value); in SerializeSampleEvent()
386 read_value->set_id(sample_info.read.one.id); in SerializeSampleEvent()
443 read_info.read_value(i).value(); in DeserializeSampleEvent()
444 sample_info.read.group.values[i].id = read_info.read_value(i).id(); in DeserializeSampleEvent()
447 sample_info.read.one.value = read_info.read_value(0).value(); in DeserializeSampleEvent()
448 sample_info.read.one.id = read_info.read_value(0).id(); in DeserializeSampleEvent()
/external/tensorflow/tensorflow/python/training/tracking/
Dutil_with_v1_optimizers_test.py253 on_create_optimizer.minimize(loss=dummy_var.read_value)
511 optimizer.minimize(root.var.read_value)
553 new_root.optimizer.minimize(new_root.var.read_value)
574 obj.opt.minimize(obj.var.read_value())
591 obj.opt.minimize(obj.var.read_value())
611 train_op = optimizer.minimize(first_variable.read_value)
627 train_op = optimizer.minimize(second_variable.read_value)
775 optimizer.minimize(v1_save.read_value)
790 load_optimizer.minimize(var.read_value)
/external/tensorflow/tensorflow/python/autograph/operators/
Dcontrol_flow_test.py62 v.assign(v.read_value() + i)
69 self.assertEqual(self.evaluate(v.read_value()), 10)

123