Home
last modified time | relevance | path

Searched refs:GetAllocator (Results 1 – 25 of 81) sorted by relevance

1234

/external/tensorflow/tensorflow/core/common_runtime/sycl/
Dsycl_device.cc38 Allocator* SYCLDevice::GetAllocator(AllocatorAttributes attr) { in GetAllocator() function in tensorflow::SYCLDevice
50 Allocator* host_alloc = GetAllocator(attr); in MakeTensorFromProto()
61 Tensor copy(GetAllocator(alloc_attrs), parsed.dtype(), parsed.shape()); in MakeTensorFromProto()
/external/tensorflow/tensorflow/core/common_runtime/gpu/
Dgpu_device_factory.cc43 Allocator* GetAllocator(AllocatorAttributes attr) override { in GetAllocator() function in tensorflow::GPUDevice
94 Allocator* GetAllocator(AllocatorAttributes attr) override { in GetAllocator() function in tensorflow::GPUCompatibleCPUDevice
100 return ThreadPoolDevice::GetAllocator(attr); in GetAllocator()
/external/tensorflow/tensorflow/core/common_runtime/
Dscoped_allocator_mgr_test.cc149 ScopedAllocator* other = sac->GetAllocator(scope_id_); in TEST_F()
154 other = sac->GetAllocator(scope_id_); in TEST_F()
171 EXPECT_EQ(nullptr, sac->GetAllocator(scope_id_)); in TEST_F()
Drenamed_device.h58 Allocator* GetAllocator(AllocatorAttributes attr) override { in GetAllocator() function
59 return underlying_->GetAllocator(attr); in GetAllocator()
Dthreadpool_device.h32 Allocator* GetAllocator(AllocatorAttributes attr) override;
Dring_reducer.cc114 col_ctx_->device->GetAllocator(attr))); in ContinueAfterInputCopy()
123 group_size_tensor_ = ca_->Scalar(col_ctx_->device->GetAllocator( in ContinueAfterInputCopy()
Dsingle_threaded_cpu_device.cc76 Allocator* GetAllocator(AllocatorAttributes attr) override { in GetAllocator() function in tensorflow::__anona485c93d0111::SingleThreadedCpuDevice
Dthreadpool_device.cc76 Allocator* ThreadPoolDevice::GetAllocator(AllocatorAttributes attr) { in GetAllocator() function in tensorflow::ThreadPoolDevice
Ddevice_set_test.cc32 Allocator* GetAllocator(AllocatorAttributes) override { return nullptr; } in Dev() function in tensorflow::__anonf0ab42df0111::Dev::FakeDevice
Dscoped_allocator_mgr.h40 ScopedAllocator* GetAllocator(int32 scope_id);
/external/tensorflow/tensorflow/core/framework/
Ddevice_base.h182 virtual Allocator* GetAllocator(AllocatorAttributes /*attr*/) { in GetAllocator() function
191 return GetAllocator(attr); in GetStepAllocator()
Dresource_op_kernel_test.cc41 Allocator* GetAllocator(AllocatorAttributes) override { in GetAllocator() function in tensorflow::__anonb2ebfc8c0111::StubDevice
100 DEVICE_CPU, &device_, device_.GetAllocator(AllocatorAttributes()), in CreateOp()
Dallocator_registry.h71 Allocator* GetAllocator();
/external/tensorflow/tensorflow/core/kernels/
Dstack.cc246 Allocator* allocator = device->GetAllocator(alloc_attrs); in ComputeAsync()
255 Allocator* cpu_allocator = device->GetAllocator(host_alloc_attrs); in ComputeAsync()
304 Allocator* gpu_allocator = device->GetAllocator(value.alloc_attrs); in ComputeAsync()
Dresize_area_op_test.cc42 Tensor* input = new Tensor(device_->GetAllocator(AllocatorAttributes()), in SetRandomImageInput()
154 new Tensor(device_->GetAllocator(AllocatorAttributes()), in RunRandomTest()
Dresize_bilinear_op_test.cc51 Tensor* input = new Tensor(device_->GetAllocator(AllocatorAttributes()), in SetRandomImageInput()
130 device_->GetAllocator(AllocatorAttributes()), in TestResize()
213 new Tensor(device_->GetAllocator(AllocatorAttributes()), in TEST_F()
Dops_testutil.cc36 allocator_ = device_->GetAllocator(AllocatorAttributes()); in SetDevice()
Dresize_bicubic_op_test.cc43 Tensor* input = new Tensor(device_->GetAllocator(AllocatorAttributes()), in SetRandomImageInput()
172 device_->GetAllocator(AllocatorAttributes()), in RunRandomTest()
/external/tensorflow/tensorflow/compiler/tf2xla/
Dxla_compilation_device.h53 Allocator* GetAllocator(AllocatorAttributes attr) override;
Dxla_compilation_device.cc86 Allocator* XlaCompilationDevice::GetAllocator(AllocatorAttributes attr) { in GetAllocator() function in tensorflow::XlaCompilationDevice
/external/tensorflow/tensorflow/core/grappler/optimizers/
Devaluation_utils.h44 Allocator* GetAllocator(AllocatorAttributes attr) override { in GetAllocator() function
Devaluation_utils.cc93 CreateOpKernel("CPU", cpu_device, cpu_device->GetAllocator({}), node, in EvaluateNode()
/external/tensorflow/tensorflow/contrib/memory_stats/kernels/
Dmemory_stats_ops.cc26 context->device()->GetAllocator(AllocatorAttributes()); in Compute()
/external/tensorflow/tensorflow/c/kernels/
Dbitcast_op_test.cc29 Allocator* GetAllocator(AllocatorAttributes /*attr*/) override { in GetAllocator() function in tensorflow::__anon6753de0e0111::DummyDevice
/external/tensorflow/tensorflow/core/grappler/clusters/
Dsingle_machine.cc230 auto* allocator = device->GetAllocator(AllocatorAttributes()); in GetPeakMemoryUsage()
458 auto* allocator = device->GetAllocator(AllocatorAttributes()); in ClearAllocatorStats()

1234