NodeMapperMultiProc

class ivy.NodeMapperMultiProc(fn, ret_fn, node_strs, timeout=None, constant=None, unique=None)[source]

Bases: ivy.core.multi_node.NodeMapper

__init__(fn, ret_fn, node_strs, timeout=None, constant=None, unique=None)[source]

Node Mapper base class.

Parameters
  • fn (callable) – The function which the node mapper parallelises across nodes.

  • ret_fn (callable) – The function which receives the ivy.MultiNodeIter as input, and produces a single node output.

  • queue_class (class) – The class to use for creating queues.

  • worker_class (class) – The class to use for creating parallel workers.

  • node_strs (sequence of str) – A list of nodes on which to parallelise the function.

  • timeout (float, optional) – The timeout for getting items from the queues. Default is global.

  • constant (dict of any, optional) – A dict of keyword arguments which are the same for each process. Default is None.

  • unique (dict of iterables of any, optional) – A dict of keyword argument sequences which are unique for each process. Default is None.


Supported Frameworks:

empty jax_logo empty tf_logo empty pytorch_logo empty mxnet_logo empty numpy_logo empty