Home
last modified time | relevance | path

Searched refs:host_value (Results 1 – 12 of 12) sorted by relevance

/external/angle/third_party/abseil-cpp/absl/base/internal/
Dendian_test.cc116 T host_value = *it; in GBSwapHelper() local
118 char actual_value[sizeof(host_value)]; in GBSwapHelper()
119 memcpy(actual_value, &host_value, sizeof(host_value)); in GBSwapHelper()
122 char expected_value[sizeof(host_value)]; in GBSwapHelper()
123 memcpy(expected_value, &host_value, sizeof(host_value)); in GBSwapHelper()
124 ManualByteSwap(expected_value, sizeof(host_value)); in GBSwapHelper()
126 ASSERT_EQ(0, memcmp(actual_value, expected_value, sizeof(host_value))) in GBSwapHelper()
127 << "Swap output for 0x" << std::hex << host_value << " does not match. " in GBSwapHelper()
/external/tensorflow/third_party/absl/abseil-cpp/absl/base/internal/
Dendian_test.cc116 T host_value = *it; in GBSwapHelper() local
118 char actual_value[sizeof(host_value)]; in GBSwapHelper()
119 memcpy(actual_value, &host_value, sizeof(host_value)); in GBSwapHelper()
122 char expected_value[sizeof(host_value)]; in GBSwapHelper()
123 memcpy(expected_value, &host_value, sizeof(host_value)); in GBSwapHelper()
124 ManualByteSwap(expected_value, sizeof(host_value)); in GBSwapHelper()
126 ASSERT_EQ(0, memcmp(actual_value, expected_value, sizeof(host_value))) in GBSwapHelper()
127 << "Swap output for 0x" << std::hex << host_value << " does not match. " in GBSwapHelper()
/external/cronet/third_party/abseil-cpp/absl/base/internal/
Dendian_test.cc116 T host_value = *it; in GBSwapHelper() local
118 char actual_value[sizeof(host_value)]; in GBSwapHelper()
119 memcpy(actual_value, &host_value, sizeof(host_value)); in GBSwapHelper()
122 char expected_value[sizeof(host_value)]; in GBSwapHelper()
123 memcpy(expected_value, &host_value, sizeof(host_value)); in GBSwapHelper()
124 ManualByteSwap(expected_value, sizeof(host_value)); in GBSwapHelper()
126 ASSERT_EQ(0, memcmp(actual_value, expected_value, sizeof(host_value))) in GBSwapHelper()
127 << "Swap output for 0x" << std::hex << host_value << " does not match. " in GBSwapHelper()
/external/libtextclassifier/abseil-cpp/absl/base/internal/
Dendian_test.cc116 T host_value = *it; in GBSwapHelper() local
118 char actual_value[sizeof(host_value)]; in GBSwapHelper()
119 memcpy(actual_value, &host_value, sizeof(host_value)); in GBSwapHelper()
122 char expected_value[sizeof(host_value)]; in GBSwapHelper()
123 memcpy(expected_value, &host_value, sizeof(host_value)); in GBSwapHelper()
124 ManualByteSwap(expected_value, sizeof(host_value)); in GBSwapHelper()
126 ASSERT_EQ(0, memcmp(actual_value, expected_value, sizeof(host_value))) in GBSwapHelper()
127 << "Swap output for 0x" << std::hex << host_value << " does not match. " in GBSwapHelper()
/external/abseil-cpp/absl/base/internal/
Dendian_test.cc116 T host_value = *it; in GBSwapHelper() local
118 char actual_value[sizeof(host_value)]; in GBSwapHelper()
119 memcpy(actual_value, &host_value, sizeof(host_value)); in GBSwapHelper()
122 char expected_value[sizeof(host_value)]; in GBSwapHelper()
123 memcpy(expected_value, &host_value, sizeof(host_value)); in GBSwapHelper()
124 ManualByteSwap(expected_value, sizeof(host_value)); in GBSwapHelper()
126 ASSERT_EQ(0, memcmp(actual_value, expected_value, sizeof(host_value))) in GBSwapHelper()
127 << "Swap output for 0x" << std::hex << host_value << " does not match. " in GBSwapHelper()
/external/openscreen/third_party/abseil/src/absl/base/internal/
Dendian_test.cc116 T host_value = *it; in GBSwapHelper() local
118 char actual_value[sizeof(host_value)]; in GBSwapHelper()
119 memcpy(actual_value, &host_value, sizeof(host_value)); in GBSwapHelper()
122 char expected_value[sizeof(host_value)]; in GBSwapHelper()
123 memcpy(expected_value, &host_value, sizeof(host_value)); in GBSwapHelper()
124 ManualByteSwap(expected_value, sizeof(host_value)); in GBSwapHelper()
126 ASSERT_EQ(0, memcmp(actual_value, expected_value, sizeof(host_value))) in GBSwapHelper()
127 << "Swap output for 0x" << std::hex << host_value << " does not match. " in GBSwapHelper()
/external/webrtc/third_party/abseil-cpp/absl/base/internal/
Dendian_test.cc116 T host_value = *it; in GBSwapHelper() local
118 char actual_value[sizeof(host_value)]; in GBSwapHelper()
119 memcpy(actual_value, &host_value, sizeof(host_value)); in GBSwapHelper()
122 char expected_value[sizeof(host_value)]; in GBSwapHelper()
123 memcpy(expected_value, &host_value, sizeof(host_value)); in GBSwapHelper()
124 ManualByteSwap(expected_value, sizeof(host_value)); in GBSwapHelper()
126 ASSERT_EQ(0, memcmp(actual_value, expected_value, sizeof(host_value))) in GBSwapHelper()
127 << "Swap output for 0x" << std::hex << host_value << " does not match. " in GBSwapHelper()
/external/rust/crates/grpcio-sys/grpc/third_party/abseil-cpp/absl/base/internal/
Dendian_test.cc116 T host_value = *it; in GBSwapHelper() local
118 char actual_value[sizeof(host_value)]; in GBSwapHelper()
119 memcpy(actual_value, &host_value, sizeof(host_value)); in GBSwapHelper()
122 char expected_value[sizeof(host_value)]; in GBSwapHelper()
123 memcpy(expected_value, &host_value, sizeof(host_value)); in GBSwapHelper()
124 ManualByteSwap(expected_value, sizeof(host_value)); in GBSwapHelper()
126 ASSERT_EQ(0, memcmp(actual_value, expected_value, sizeof(host_value))) in GBSwapHelper()
127 << "Swap output for 0x" << std::hex << host_value << " does not match. " in GBSwapHelper()
/external/tensorflow/tensorflow/compiler/xla/python/tpu_driver/client/
Dtpu_client.cc295 std::shared_ptr<HostValue> host_value = std::make_shared<HostValue>(); in CopyToHostAsync() local
308 host_value->value = std::make_shared<Literal>(on_host_shape_); in CopyToHostAsync()
309 host_value->pending_ops = std::max(1ul, child_buffers_.size()); in CopyToHostAsync()
310 host_value_ = host_value; in CopyToHostAsync()
318 << host_value->value->shape().DebugString(); in CopyToHostAsync()
323 device_buffer_->handle.get(), host_value->value->untyped_data(), in CopyToHostAsync()
330 host_value->value->untyped_data(xla::ShapeIndex({i})), events)); in CopyToHostAsync()
336 t->AddCallback([host_value](const xla::Status& status) { in CopyToHostAsync()
339 host_value->status = in CopyToHostAsync()
344 absl::MutexLock m(&host_value->mutex); in CopyToHostAsync()
[all …]
/external/tensorflow/tensorflow/compiler/xla/stream_executor/
Dhost_or_device_scalar.h31 explicit HostOrDeviceScalar(T host_value) : value_(std::move(host_value)) {} in HostOrDeviceScalar() argument
/external/tensorflow/tensorflow/compiler/xla/python/
Dpy_buffer.cc251 std::shared_ptr<HostValue> host_value = std::make_shared<HostValue>(); in CopyToHostAsync() local
252 host_value_ = host_value; in CopyToHostAsync()
259 host_value->value = std::make_shared<Literal>( in CopyToHostAsync()
261 Literal* literal = host_value->value.get(); in CopyToHostAsync()
263 [host_value{std::move(host_value)}](Status status) { in CopyToHostAsync()
264 host_value->status = std::move(status); in CopyToHostAsync()
265 host_value->ready.Notify(); in CopyToHostAsync()
/external/cronet/net/dns/
Dhost_resolver_internal_result.cc357 for (const base::Value& host_value : *host_values) { in FromValue()
358 absl::optional<HostPortPair> host = HostPortPair::FromValue(host_value); in FromValue()