Home / Class/ stack Class — pytorch Architecture

stack Class — pytorch Architecture

Architecture documentation for the stack class in boxing.h from the pytorch codebase.

Entity Profile

Source Code

aten/src/ATen/core/boxing/impl/boxing.h lines 149–160

template <class Result>
struct PopResult final {
  static Result call(Stack& stack) {
    TORCH_INTERNAL_ASSERT_DEBUG_ONLY(
        stack.size() == 1,
        "Boxed kernel was expected to return one value on the stack, ",
        "but instead pushed ",
        stack.size(),
        " values.");
    return std::move(stack[0]).to<Result>();
  }
};

Analyze Your Own Codebase

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

Try Supermodel Free