Home / Class/ IValue Class — pytorch Architecture

IValue Class — pytorch Architecture

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

Entity Profile

Source Code

aten/src/ATen/core/boxing/impl/boxing.h lines 60–65

template <typename T>
using can_box = std::disjunction<
    std::is_constructible<IValue, std::decay_t<T>>,
    // TensorOptions are not directly constructible into IValue,
    // but torch::jit::push knows how to handle them
    std::is_same<TensorOptions, std::decay_t<T>>>;

Analyze Your Own Codebase

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

Try Supermodel Free