install_backend

plaidml.keras.install_backend(import_path='keras.backend', backend='plaidml', trace_file=None)[source]

Installs the PlaidML backend loader, overriding the default keras.backend.

Parameters:
  • import_path – The name of the module to patch.
  • backend – The name of the backend to patch in.
  • trace_file – A file object to write trace data to. This may also be the name of a file, which will be opened with mode ‘w’ (clobbering the existing file, if any).