sponge.function.get_length_unit_name

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

get name of length unit.

Parameters

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

Returns

length unit(str).

Supported Platforms:

Ascend GPU CPU