cubed.compute

Contents

cubed.compute#

cubed.compute(*arrays, executor=None, callbacks=None, optimize_graph=True, optimize_function=None, resume=None, **kwargs)#

Compute multiple arrays at once.

Parameters:
  • arrays (cubed.CoreArray) – The arrays to compute.

  • executor (Executor, optional) – The executor to use to run the computation. If not set then the executor from the Spec from the arrays is used.

  • callbacks (list of Callback, optional) – Callbacks to send events to while running the computation.

  • optimize_graph (bool, optional) – If True, the graph is optimized before running the computation. Otherwise, the graph is computed as is. Default is True.

  • optimize_function (callable, optional) – Function to optimize the computation graph. Default is to use a function that performs map fusion only.

  • resume (bool, optional) – If True, intermediate arrays that have already been computed won’t be recomputed. Default is False.