Shortcuts

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 Holder : public torch::nn::AnyValue::Placeholder

Public Functions

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

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

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

Public Members

T value

Docs

Access comprehensive developer documentation for PyTorch

View Docs

Tutorials

Get in-depth tutorials for beginners and advanced developers

View Tutorials

Resources

Find development resources and get your questions answered

View Resources