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_DEVICEandPLAIDML_TARGETto specify your device and target. You can override these using theset_deviceandset_targetfunctions
-
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>
-