Shortcuts

Class Environment

Inheritance Relationships

Derived Types

Class Documentation

class Environment

An environment is the concept to decribe the circumstances in which a torch::deploy interpreter runs.

In can be an xar file embedded in the binary, a filesystem path for the installed libraries etc.

Subclassed by torch::deploy::NoopEnvironment, torch::deploy::PathEnvironment

Public Functions

inline explicit Environment()

Environment constructor which creates a random temporary directory as a directory for the zipped python modules.

inline explicit Environment(const std::string &pythonAppDir)

Environment constructor which takes a file name for the directory for the python modules.

inline virtual ~Environment()
inline virtual const std::vector<std::string> &getExtraPythonPaths()
virtual void configureInterpreter(Interpreter *interp) = 0

Gives information to the interpreter about the Environment if necessary.

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