Execution¶
PlaidML Execution
Contents
Initialization¶
-
void
plaidml::exec
::
init
()¶ Initializes PlaidML’s Execution API.
Note
Initialization of PlaidML’s Execution Python API happens
automatically wherever the module plaidml.exec
is imported.
Objects¶
-
class
Executable
¶ This is an Executable.
Public Functions
-
Executable
(const edsl::Program &program, const std::vector<Binding> &inputs, const std::vector<Binding> &outputs)¶ Executable constructor
-
Executable
(const edsl::Program &program, const std::string &device, const std::string &target, const std::vector<Binding> &inputs, const std::vector<Binding> &outputs)¶ Executable constructor
-
void
run
()¶ run
-
-
struct
Binder
¶ This is a Binder.
Public Functions
-
Binder
(const edsl::Program &program)¶ Constructs a Binder. By default, this constructor uses the environment variables
PLAIDML_DEVICE
andPLAIDML_TARGET
to specify your device and target. You can override these using theset_device
andset_target
functions
-
Binder &
set_device
(const std::string &value)¶ Set the device for the Binder to use.
- Return
- Parameters
value
: string
-
Binder &
set_target
(const std::string &value)¶ Set the target for the Binder to use.
- Return
- Parameters
value
: string
-
std::shared_ptr<Executable>
compile
()¶ compile
- Return
shared_ptr<Executable>
-