mindspore.get_algo_parameters

mindspore.get_algo_parameters(attr_key)[source]

Get the algorithm parameter config attributes.

Note

The attribute name is required. This interface works ONLY in AUTO_PARALLEL mode.

Parameters

attr_key (str) – The key of the attribute. The keys include: "fully_use_devices", "elementwise_op_strategy_follow", "enable_algo_approxi", "algo_approxi_epsilon", "tensor_slice_align_enable","tensor_slice_align_size". See mindspore.set_algo_parameters() for more details about the meaning of the attributes.

Returns

Return attribute value according to the key.

Raises

ValueError – If context keyword is not recognized.

Examples

>>> import mindspore as ms
>>> ms.get_algo_parameters("fully_use_devices")
True