cubed.Array.compute#
- Array.compute(*, executor=None, callbacks=None, optimize_graph=True, optimize_function=None, resume=None, **kwargs)#
Compute this array, and any arrays that it depends on.
- Parameters:
executor (Executor, optional) – The executor to use to run the computation. If not set then the executor from the array’s
Spec
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.