Shortcuts

Class IMethod

Page Contents

Class Documentation

class IMethod

Public Types

using IValueList = std::vector<c10::IValue>
using IValueMap = std::unordered_map<std::string, at::IValue>

Public Functions

IMethod() = default
IMethod(const IMethod&) = default
IMethod &operator=(const IMethod&) = default
IMethod(IMethod&&) noexcept = default
IMethod &operator=(IMethod&&) noexcept = default
virtual ~IMethod() = default
virtual c10::IValue operator()(std::vector<c10::IValue> args, const IValueMap &kwargs = IValueMap()) const = 0
virtual const std::string &name() const = 0
const std::vector<std::string> &getArgumentNames() const

Protected Functions

virtual void setArgumentNames(std::vector<std::string> &argumentNames) const = 0

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