compose

plaidml.tile.compose(ctx, dev, inputs, outputs, updates=None)[source]

Builds a TILE Function that computes the indicated values.

Parameters:
  • ctx (plaidml.Context) – The context to use for building the function.
  • dev (plaidml.Device) – The device used to build the function (where constants will live)
  • inputs ([(name, Value)]) – A list of named input placeholders.
  • outputs ([(name, Value)]) – A list of named output values.
  • updates ([(original, updated)]) – A list of updates to perform (side-effects).
Returns:

plaidml._Function – The composed TILE function.