sponge.function.get_length_unit

View Source On Gitee
sponge.function.get_length_unit(unit)[source]

get length unit.

Parameters

unit (Union[str, Units, Length, float, int]) – Length unit.

Returns

length unit(Union[str, float, int]).

Supported Platforms:

Ascend GPU CPU