Home
last modified time | relevance | path

Searched refs:TestAllocator (Results 1 – 5 of 5) sorted by relevance

/external/tensorflow/tensorflow/compiler/xla/tests/
Dlocal_client_test_base.cc37 /* static */ TestAllocator* LocalClientTestBase::allocator_;
39 StatusOr<OwningDeviceMemory> TestAllocator::Allocate(int device_ordinal, in Allocate()
52 Status TestAllocator::Deallocate(int device_ordinal, se::DeviceMemoryBase mem) { in Deallocate()
62 int64 TestAllocator::allocation_count() const { in allocation_count()
67 int64 TestAllocator::allocation_count(int device_ordinal) const { in allocation_count()
77 int64 TestAllocator::deallocation_count() const { in deallocation_count()
82 int64 TestAllocator::deallocation_count(int device_ordinal) const { in deallocation_count()
92 /* static */ TestAllocator* LocalClientTestBase::GetOrCreateAllocator( in GetOrCreateAllocator()
98 allocator_ = new TestAllocator( in GetOrCreateAllocator()
Dlocal_client_test_base.h42 class TestAllocator : public StreamExecutorMemoryAllocator {
44 explicit TestAllocator(se::Platform* platform) in TestAllocator() function
80 static TestAllocator* GetOrCreateAllocator(se::Platform* platform);
124 static TestAllocator* allocator_;
Dlocal_client_allocation_test.cc45 TestAllocator* allocator = GetOrCreateAllocator(local_client_->platform()); in XLA_TEST_F()
82 TestAllocator* allocator = GetOrCreateAllocator(local_client_->platform()); in XLA_TEST_F()
Dlocal_client_execute_test.cc698 TestAllocator allocator(wrong_platform); in XLA_TEST_F()
/external/tensorflow/tensorflow/compiler/xla/service/
Dshaped_buffer_test.cc46 class TestAllocator : public DeviceMemoryAllocator { class
48 TestAllocator() in TestAllocator() function in xla::__anone4c562340111::TestAllocator
52 ~TestAllocator() override { in ~TestAllocator()
96 TestAllocator allocator; in TEST()
113 TestAllocator allocator; in TEST()
155 TestAllocator allocator; in BM_TakeSubTree()