Rate this Page

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, typename = std::enable_if_t<!std::is_same_v<U, Holder>>>
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#