update Class — pytorch Architecture
Architecture documentation for the update class in Context.h from the pytorch codebase.
Entity Profile
Source Code
aten/src/ATen/native/vulkan/api/Context.h lines 237–250
template <typename Block>
void update(const Block& block) {
if (sizeof(block) != nbytes_) {
VK_THROW(
"Attempted to update UniformParamsBuffer with data of different size");
}
// Fill the uniform buffer with data in block
{
MemoryMap mapping(vulkan_buffer_, MemoryAccessType::WRITE);
Block* data_ptr = mapping.template data<Block>();
*data_ptr = block;
}
}
Source
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free