- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for AllocateArray (0.16 sec)
-
tensorflow/c/experimental/stream_executor/stream_executor_test.cc
EXPECT_EQ(mem->size, 2 * sizeof(int)); free(mem->opaque); mem->opaque = nullptr; mem->size = 0; }; StreamExecutor* executor = GetExecutor(0); DeviceMemory<int> mem = executor->AllocateArray<int>(2); ASSERT_NE(mem.opaque(), nullptr); ASSERT_EQ(mem.size(), 2 * sizeof(int)); executor->Deallocate(&mem); } TEST_F(StreamExecutorTest, HostMemoryAllocate) { static bool allocate_called = false;
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Mon May 20 19:54:04 UTC 2024 - 26.5K bytes - Viewed (0)