Home / Class/ mtl_setBytes Class — pytorch Architecture

mtl_setBytes Class — pytorch Architecture

Architecture documentation for the mtl_setBytes class in OperationUtils.h from the pytorch codebase.

Entity Profile

Source Code

aten/src/ATen/native/mps/OperationUtils.h lines 487–490

template <typename Container, typename = std::enable_if_t<detail::has_size_type_v<Container>>>
static inline void mtl_setBytes(id<MTLComputeCommandEncoder> encoder, const Container& values, unsigned idx) {
  [encoder setBytes:values.data() length:sizeof(typename Container::value_type) * values.size() atIndex:idx];
}

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free