Class Environment¶
Defined in File environment.h
Inheritance Relationships¶
Derived Types¶
public torch::deploy::NoopEnvironment
(Class NoopEnvironment)public torch::deploy::PathEnvironment
(Class PathEnvironment)
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.
-
inline explicit Environment()¶