Home
last modified time | relevance | path

Searched refs:on_host (Results 1 – 25 of 30) sorted by relevance

12

/external/tensorflow/tensorflow/core/kernels/
Drocm_solvers.h101 ScratchSpace(OpKernelContext* context, int64 size, bool on_host)
102 : ScratchSpace(context, TensorShape({size}), "", on_host) {}
105 bool on_host)
106 : ScratchSpace(context, TensorShape({size}), debug_info, on_host) {}
109 const string& debug_info, bool on_host)
110 : context_(context), debug_info_(debug_info), on_host_(on_host) {
112 if (on_host) {
144 bool on_host() const { return on_host_; }
Dcuda_solvers.h171 const string& debug_info, bool on_host);
174 bool on_host);
376 ScratchSpace(OpKernelContext* context, int64 size, bool on_host)
377 : ScratchSpace(context, TensorShape({size}), "", on_host) {}
380 bool on_host)
381 : ScratchSpace(context, TensorShape({size}), debug_info, on_host) {}
384 const string& debug_info, bool on_host)
385 : context_(context), debug_info_(debug_info), on_host_(on_host) {
387 if (on_host) {
419 bool on_host() const { return on_host_; }
[all …]
Dops_testutil.cc60 const bool on_host = in SetOutputAttrs() local
62 attr.set_on_host(on_host); in SetOutputAttrs()
Dstack.cc242 if (swap_memory_ && !alloc_attrs.on_host() && in ComputeAsync()
Ddebug_ops.h89 !context->input_alloc_attr(0).on_host(); in Compute()
107 !context->input_alloc_attr(0).on_host(); in Compute()
/external/tensorflow/tensorflow/core/framework/
Dallocator_test.cc50 for (bool on_host : {false, true}) { in TEST()
54 aa.set_on_host(on_host); in TEST()
57 EXPECT_EQ(on_host, aa.on_host()); in TEST()
Dallocator.cc62 return strings::StrCat("AllocatorAttributes(on_host=", on_host(), in DebugString()
Dallocator.h308 bool on_host() const { return value & 0x1; } in on_host() function
/external/tensorflow/tensorflow/core/grappler/optimizers/
Dgpu_swapping_kernels.cc32 ctx, !ctx->input_alloc_attr(0).on_host(), in ComputeAsync()
65 ctx, ctx->input_alloc_attr(0).on_host(), in ComputeAsync()
/external/tensorflow/tensorflow/core/common_runtime/sycl/
Dsycl_device.cc39 if (attr.on_host()) in GetAllocator()
58 if (alloc_attrs.on_host()) { in MakeTensorFromProto()
/external/tensorflow/tensorflow/c/experimental/
Drendezvous.cc65 alloc_attrs->on_host = args.alloc_attrs.on_host(); in RecvFromRemoteAsync()
Drendezvous_internal.h39 bool on_host; member
/external/tensorflow/tensorflow/core/distributed_runtime/rpc/
Dgrpc_worker_service.cc525 const bool on_host = send_args.alloc_attrs.on_host(); in GrpcRecvTensorAsync() local
528 if (src_dev->tensorflow_gpu_device_info() && (!on_host)) { in GrpcRecvTensorAsync()
662 const bool on_host = in RecvBufAsync() local
664 hook->prod_attr.on_host(); in RecvBufAsync()
665 if ((!on_host) && (num_bytes > 0)) { in RecvBufAsync()
/external/tensorflow/tensorflow/core/common_runtime/
Dcollective_rma_local.cc124 src_attr.on_host() ? DEVICE_CPU : src_dev->attributes().device_type()); in MemCpyAsync()
126 dst_attr.on_host() ? DEVICE_CPU : dst_dev->attributes().device_type()); in MemCpyAsync()
Drendezvous_mgr.cc44 (send_args.alloc_attrs.on_host() || parsed.src.type == "CPU"); in SameWorkerRecvDone()
46 (recv_args.alloc_attrs.on_host() || parsed.dst.type == "CPU"); in SameWorkerRecvDone()
Dcopy_tensor.cc211 src_alloc_attr.on_host() ? DEVICE_CPU : src->attributes().device_type()); in ViaDMA()
213 dst_alloc_attr.on_host() ? DEVICE_CPU : dst->attributes().device_type()); in ViaDMA()
Dpartitioning_utils_test.cc166 ASSERT_EQ(expected[i], actual[i].on_host()) << " at index " << i; in CheckAlloc()
/external/tensorflow/tensorflow/core/kernels/data/
Dsingle_threaded_executor.cc170 bool on_host = op_kernel->output_memory_types()[out] == HOST_MEMORY; in Initialize() local
171 if (on_host) { in Initialize()
173 h.set_on_host(on_host); in Initialize()
/external/tensorflow/tensorflow/core/common_runtime/gpu/
Dgpu_device_factory.cc46 if (attr.on_host()) { in GetAllocator()
Dgpu_event_mgr_test.cc414 const bool on_host = in SetOutputAttrs() local
416 attr.set_on_host(on_host); in SetOutputAttrs()
/external/tensorflow/tensorflow/core/distributed_runtime/
Dbase_rendezvous_mgr.cc241 (send_args.alloc_attrs.on_host() || parsed.src.type == "CPU"); in SameWorkerRecvDone()
243 (recv_args.alloc_attrs.on_host() || parsed.dst.type == "CPU"); in SameWorkerRecvDone()
Dtensor_coding.cc47 if (alloc_attrs_.on_host() || da.device_type() == "CPU") { in InitAlloc()
/external/tensorflow/tensorflow/c/eager/
Dc_api_experimental_test.cc529 TFE_TensorHandle* on_host = in TEST() local
532 TF_Tensor* resolved = TFE_TensorHandleResolve(on_host, status); in TEST()
539 TFE_DeleteTensorHandle(on_host); in TEST()
/external/tensorflow/tensorflow/compiler/jit/
Dxla_device.cc257 if (attr.on_host()) { in GetAllocatorLocked()
485 if (alloc_attrs.on_host()) { in MakeTensorFromProto()
/external/tensorflow/tensorflow/core/graph/
Dgraph_partition.cc1101 const bool on_host = IsDstInputOnHost(edge, g_info); in Partition() local
1102 DupRecvKey key{src->id(), edge->src_output(), dst_graph, on_host}; in Partition()

12