Home
last modified time | relevance | path

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

/external/tensorflow/tensorflow/core/framework/
Dallocator.h143 const AllocationAttributes& allocation_attr) { in AllocateRaw() argument
252 const AllocationAttributes& allocation_attr) override { in AllocateRaw() argument
253 return wrapped_->AllocateRaw(alignment, num_bytes, allocation_attr); in AllocateRaw()
Dtyped_allocator.h38 const AllocationAttributes& allocation_attr) { in Allocate() argument
48 sizeof(T) * num_elements, allocation_attr); in Allocate()
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()
785 const AllocationAttributes& allocation_attr) in Tensor() argument
790 CASES(type, buf_ = new Buffer<T>(a, shape.num_elements(), allocation_attr)); in Tensor()
792 if (MemoryLoggingEnabled() && !allocation_attr.allocation_will_be_logged && in Tensor()
Dop_kernel.cc749 AllocatorAttributes attr, const AllocationAttributes& allocation_attr) { in allocate_tensor() argument
754 AllocationAttributes(allocation_attr.no_retry_on_failure, in allocate_tensor()
756 allocation_attr.freed_by_func)); in allocate_tensor()
819 const AllocationAttributes& allocation_attr) { in allocate_temp() argument
837 allocate_tensor(type, shape, out_temp, allocator_attr, allocation_attr); in allocate_temp()
Dop_kernel.h1022 const AllocationAttributes& allocation_attr);
1312 const AllocationAttributes& allocation_attr);
Dtensor.h150 const AllocationAttributes& allocation_attr);
/external/tensorflow/tensorflow/core/common_runtime/
Dbfc_allocator.cc202 const AllocationAttributes& allocation_attr) { in AllocateRawInternalWithRetry() argument
205 if (allocation_attr.freed_by_func != nullptr) { in AllocateRawInternalWithRetry()
206 freed_by_count = (*allocation_attr.freed_by_func)(); in AllocateRawInternalWithRetry()
215 [this, &allocation_attr](size_t a, size_t nb, bool v) { in AllocateRawInternalWithRetry()
217 if (allocation_attr.freed_by_func != nullptr) { in AllocateRawInternalWithRetry()
218 freed_by_count = (*allocation_attr.freed_by_func)(); in AllocateRawInternalWithRetry()
228 const AllocationAttributes& allocation_attr) { in AllocateRaw() argument
230 if (allocation_attr.no_retry_on_failure) { in AllocateRaw()
235 if (allocation_attr.freed_by_func != nullptr) { in AllocateRaw()
236 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.no_retry_on_failure = true; in AllocateBytes()
74 AllocatorAttributes(), allocation_attr)); in AllocateBytes()
Dfft_ops.cc374 AllocationAttributes allocation_attr; in AllocateBytes() local
375 allocation_attr.no_retry_on_failure = true; in AllocateBytes()
378 AllocatorAttributes(), allocation_attr)); in AllocateBytes()
/external/tensorflow/tensorflow/core/distributed_runtime/
Dtensor_coding.h80 const AllocationAttributes& allocation_attr);
Dbase_rendezvous_mgr.cc283 AllocationAttributes allocation_attr; in SameWorkerRecvDone() local
291 allocation_attr.freed_by_func = &freed_by_func; in SameWorkerRecvDone()
295 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.cc591 AllocationAttributes allocation_attr; in MaybeCopyTensorToGPU() local
598 allocation_attr.freed_by_func = &freed_by_func; in MaybeCopyTensorToGPU()
601 from.shape(), allocation_attr); in MaybeCopyTensorToGPU()