Shortcuts

Class IMethod

Page Contents

Class Documentation

class torch::IMethod

Public Types

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

Public Functions

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

Protected Functions

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