# tensorplay.multiprocessing API Source: https://www.tensorplay.cn/docs/api/tensorplay.multiprocessing.html ## Functions 3 [#](#api-tensorplay.multiprocessing.get_all_sharing_strategies) ### get_all_sharing_strategies function[Full reference ↗](/docs/generated/tensorplay.multiprocessing.get_all_sharing_strategies.html) ```python tensorplay.multiprocessing.get_all_sharing_strategies() ``` Return a set of sharing strategies supported on a current system. [#](#api-tensorplay.multiprocessing.get_sharing_strategy) ### get_sharing_strategy function[Full reference ↗](/docs/generated/tensorplay.multiprocessing.get_sharing_strategy.html) ```python tensorplay.multiprocessing.get_sharing_strategy() ``` Return the current strategy for sharing CPU tensors. [#](#api-tensorplay.multiprocessing.set_sharing_strategy) ### set_sharing_strategy function[Full reference ↗](/docs/generated/tensorplay.multiprocessing.set_sharing_strategy.html) ```python tensorplay.multiprocessing.set_sharing_strategy(new_strategy) ``` Set the strategy for sharing CPU tensors. Parameters: new_strategy ([str](https://docs.python.org/3/builtins/stdtypes.html#str)) – Name of the selected strategy. Should be one of the values returned by [get_all_sharing_strategies()](/docs/generated/tensorplay.multiprocessing.get_all_sharing_strategies.html#tensorplay.multiprocessing.get_all_sharing_strategies).