Shortcuts

Class Interpreter

Class Documentation

class Interpreter

An Interpreter represents an invidual subinterpreter created by torch::deploy.

It allows for the creation of InterpreterSession objects which allow users to interact with python objects.

Public Functions

Interpreter(InterpreterManager *manager, std::shared_ptr<Environment> env)

Creates an Interpreter which is managed by manager and using the environment env

inline explicit Interpreter(std::shared_ptr<Environment> env)

Creates an Interpreter manager using environment env which is not tied to an Interpreter Manager.

inline InterpreterSession acquireSession() const

Gets a new InterpreterSession from this Interpreter.

~Interpreter()
inline Interpreter(Interpreter &&rhs) noexcept
Interpreter(const Interpreter&) = delete
Interpreter &operator=(const Interpreter&) = delete
Interpreter &operator=(Interpreter&&) = delete

Friends

friend struct InterpreterManager

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