def set_sharing_strategy(new_strategy):
 global _sharing_strategy
 assert (new_strategy in _all_sharing_strategies)
 _sharing_strategy = new_strategy

def set_sharing_strategy ( new_strategy ) : global _sharing_strategy assert ( new_strategy in _all_sharing_strategies ) _sharing_strategy = new_strategy
sets the strategy for sharing cpu tensors .