Shortcuts

Template Struct NamedPolicy

Page Contents

Struct Documentation

template<typename Policy>
struct NamedPolicy

Public Types

using value_type = Named<typename Policy::value_type>

Public Static Functions

static inline value_type create(const std::vector<detail::SlotCursor> &cursors, IValue v)
static inline bool valid(const ClassTypePtr &t, size_t i, const IValue &v)

Public Static Attributes

static constexpr bool all_slots = Policy::all_slots

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