Home / Class/ setStridedUnchecked Class — pytorch Architecture

setStridedUnchecked Class — pytorch Architecture

Architecture documentation for the setStridedUnchecked class in TensorShape.cpp from the pytorch codebase.

Entity Profile

Source Code

aten/src/ATen/native/TensorShape.cpp lines 1424–1432

template <typename T>
static inline void setStridedUnchecked(
    const Tensor& self,
    ArrayRef<T> size,
    ArrayRef<T> stride,
    T&& storage_offset) {
  auto* self_ = self.unsafeGetTensorImpl();
  self_->set_sizes_and_strides(size, stride, std::forward<T>(storage_offset));
}

Analyze Your Own Codebase

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

Try Supermodel Free