Shortcuts

Struct InterpreterSession

Struct Documentation

struct InterpreterSession

Public Functions

inline explicit InterpreterSession(InterpreterSessionImpl *impl) noexcept
inline InterpreterSession(InterpreterSessionImpl *impl, InterpreterManager *manager) noexcept
inline bool isOwner(Obj obj)

Returns true if obj belongs to this InterpreterSession

InterpreterSession(InterpreterSession&&) noexcept = default
~InterpreterSession()
inline Obj global(const char *module, const char *name)

global imports a python object from the specified module.

Specifically global is analogous to “from `module` import `name`” in python.

inline Obj fromIValue(at::IValue ivalue)

Creates an Obj from an IValue.

ReplicatedObj createMovable(Obj obj)

Use `ReplicatedObj InterpreterManager::createMovable(Obj obj, InterpreterSession* I)’ instead.

We will have no backwards compatibility guarentees for this function.

Obj fromMovable(const ReplicatedObj &obj)

Converts a ReplicatedObj to an Obj on this InterpreterSession.

Public Members

Obj self

Protected Functions

bool attachDeconstructorCallback(std::function<void()> func)

Friends

friend struct LoadBalancer

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