Shortcuts

Template Struct NamedPolicy

Page Contents

Struct Documentation

template<typename Policy>
struct torch::jit::detail::NamedPolicy

Public Types

using value_type = Named<typename Policy::value_type>

Public Static Functions

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

Public Static Attributes

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