VulkanAPITest Class — pytorch Architecture
Architecture documentation for the VulkanAPITest class in vulkan_quantized_api_test.cpp from the pytorch codebase.
Entity Profile
Source Code
aten/src/ATen/test/vulkan_quantized_api_test.cpp lines 273–295
class VulkanAPITest : public ::testing::Test {
public:
void SetUp() override {
if (!at::is_vulkan_available()) {
GTEST_SKIP() << "Vulkan is not available";
}
#if defined(USE_VULKAN_GPU_DIAGNOSTICS) && defined(__ANDROID__)
at::native::vulkan::api::context()->reset_querypool();
#endif
}
void TearDown() override {
#if defined(USE_VULKAN_GPU_DIAGNOSTICS) && defined(__ANDROID__)
try {
at::native::vulkan::api::context()->querypool().extract_results();
at::native::vulkan::api::context()->querypool().print_results();
} catch (const std::exception& e) {
std::cout << "Could not get querypool results!"
<< " Reason: " << e.what() << std::endl;
}
#endif
}
};
Source
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free