Class Interpreter¶
Defined in File deploy.h
Class Documentation¶
-
class Interpreter¶
An
Interpreter
represents an invidual subinterpreter created bytorch::deploy
.It allows for the creation of
InterpreterSession
objects which allow users to interact with python objects.Public Functions
Creates an Interpreter which is managed by
manager
and using the environmentenv
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