Home
last modified time | relevance | path

Searched refs:allocation_attr (Results 1 – 16 of 16) sorted by relevance

/external/tensorflow/tensorflow/core/common_runtime/
Dbfc_allocator.cc228 const AllocationAttributes& allocation_attr) { in AllocateRawInternalWithRetry() argument
231 if (allocation_attr.freed_by_func != nullptr) { in AllocateRawInternalWithRetry()
232 freed_by_count = (*allocation_attr.freed_by_func)(); in AllocateRawInternalWithRetry()
241 [this, &allocation_attr](size_t a, size_t nb, bool v) { in AllocateRawInternalWithRetry()
243 if (allocation_attr.freed_by_func != nullptr) { in AllocateRawInternalWithRetry()
244 freed_by_count = (*allocation_attr.freed_by_func)(); in AllocateRawInternalWithRetry()
254 const AllocationAttributes& allocation_attr) { in AllocateRaw() argument
256 if (!allocation_attr.retry_on_failure) { in AllocateRaw()
261 if (allocation_attr.freed_by_func != nullptr) { in AllocateRaw()
262 freed_by_count = (*allocation_attr.freed_by_func)(); in AllocateRaw()
[all …]
Dbfc_allocator.h64 const AllocationAttributes& allocation_attr) override;
97 const AllocationAttributes& allocation_attr);
/external/tensorflow/tensorflow/core/kernels/
Dconv_ops_gpu.h70 AllocationAttributes allocation_attr; in AllocateBytes() local
71 allocation_attr.retry_on_failure = false; in AllocateBytes()
74 AllocatorAttributes(), allocation_attr)); in AllocateBytes()
Dfft_ops.cc374 AllocationAttributes allocation_attr; in AllocateBytes() local
375 allocation_attr.retry_on_failure = false; in AllocateBytes()
378 AllocatorAttributes(), allocation_attr)); in AllocateBytes()
/external/tensorflow/tensorflow/core/framework/
Dtyped_allocator.h38 const AllocationAttributes& allocation_attr) { in Allocate() argument
48 sizeof(T) * num_elements, allocation_attr); in Allocate()
Dallocator.h202 const AllocationAttributes& allocation_attr) { in AllocateRaw() argument
311 const AllocationAttributes& allocation_attr) override { in AllocateRaw() argument
312 return wrapped_->AllocateRaw(alignment, num_bytes, allocation_attr); in AllocateRaw()
Dtracking_allocator.cc34 const AllocationAttributes& allocation_attr) { in AllocateRaw() argument
35 void* ptr = allocator_->AllocateRaw(alignment, num_bytes, allocation_attr); in AllocateRaw()
Dtracking_allocator.h62 const AllocationAttributes& allocation_attr) override;
Dtensor.cc131 Buffer(Allocator* a, int64 n, const AllocationAttributes& allocation_attr);
477 const AllocationAttributes& allocation_attr) in Buffer() argument
478 : BufferBase(a, TypedAllocator::Allocate<T>(a, n, allocation_attr)), in Buffer()
778 const AllocationAttributes& allocation_attr) in Tensor() argument
783 CASES(type, buf_ = new Buffer<T>(a, shape.num_elements(), allocation_attr)); in Tensor()
785 if (MemoryLoggingEnabled() && !allocation_attr.allocation_will_be_logged && in Tensor()
Dop_kernel.cc708 AllocatorAttributes attr, const AllocationAttributes& allocation_attr) { in allocate_tensor() argument
713 /*retry_on_failure=*/allocation_attr.retry_on_failure, in allocate_tensor()
714 /*allocation_will_be_logged=*/true, allocation_attr.freed_by_func)); in allocate_tensor()
778 const AllocationAttributes& allocation_attr) { in allocate_temp() argument
798 allocate_tensor(type, shape, out_temp, allocator_attr, allocation_attr); in allocate_temp()
Dop_kernel.h1013 const AllocationAttributes& allocation_attr);
1285 const AllocationAttributes& allocation_attr);
Dtensor.h153 const AllocationAttributes& allocation_attr);
/external/tensorflow/tensorflow/core/distributed_runtime/
Dtensor_coding.h80 const AllocationAttributes& allocation_attr);
Dbase_rendezvous_mgr.cc268 AllocationAttributes allocation_attr; in SameWorkerRecvDone() local
276 allocation_attr.freed_by_func = &freed_by_func; in SameWorkerRecvDone()
280 Tensor copy(out_allocator, in.dtype(), in.shape(), allocation_attr); in SameWorkerRecvDone()
Dtensor_coding.cc72 const AllocationAttributes& allocation_attr) { in InitPartial() argument
78 Tensor t(allocator_, meta_.tensor().dtype(), shape, allocation_attr); in InitPartial()
/external/tensorflow/tensorflow/core/common_runtime/gpu/
Dgpu_device.cc648 AllocationAttributes allocation_attr; in MaybeCopyTensorToGPU() local
655 allocation_attr.freed_by_func = &freed_by_func; in MaybeCopyTensorToGPU()
658 from.shape(), allocation_attr); in MaybeCopyTensorToGPU()