Template Struct AnyValue::Holder

Nested Relationships

This struct is a nested type of Class AnyValue.

Inheritance Relationships

Base Type

  • public torch::nn::AnyValue::Placeholder

Struct Documentation

template<typename T>
struct torch::nn::AnyValue::Holder : public torch::nn::AnyValue::Placeholder

Public Functions

template<typename U>
Holder(U &&value_) noexcept

A template because T&& would not be universal reference here.

std::unique_ptr<Placeholder> clone() const override

Public Members

T value


Access comprehensive developer documentation for PyTorch

View Docs


Get in-depth tutorials for beginners and advanced developers

View Tutorials


Find development resources and get your questions answered

View Resources